r/programming • • Dec 02 '19

Bubble sort visualization

7.4k Upvotes

268 comments sorted by

View all comments

40

u/[deleted] Dec 02 '19

Thank you for this!

(I have a data structures and algorithms final in like 2 weeks send help)

38

u/pedrovhb Dec 02 '19

Glad it's useful!

I'm practicing my Manim, so I'll probably do a couple more easy sorting algorithms before moving on to trees (:

13

u/Vauc2000 Dec 02 '19

I was wondering why it looked so much like 3Blue1Brown

1

u/foofaw Dec 03 '19

Please do!

1

u/Odanie Dec 03 '19

Do it, Pedrão.

1

u/Kaligule Dec 03 '19

Cool, how do you like manim? I found it incredibly hard to get into because of the lack of good documentation.

2

u/unable_to_give_afuck Dec 03 '19

I have my Object Oriented Design Patterns final next week. This was helpful! I hope we get visualizations of more sorting methods.

1

u/uber1337h4xx0r Dec 03 '19

Rip, that's the class that made me want to consider suicide.

I ended up failing it once, dropping it the second time, and barely passing the final time lol.

1

u/[deleted] Dec 03 '19

Good you passed though!

I swear, I’m only not more panicked because my teacher provided us four practice finals on his website. He’s actually such a nice dude - too bad I’m trash at his class’ subject matter lmao

1

u/uber1337h4xx0r Dec 03 '19

It's not impossible at least. If a retarded person like me can pass, then so can you. And even on your first try lol

1

u/[deleted] Dec 03 '19

Don’t call yourself that! But thank you for the encouragement anyway lol

1

u/Alchestbreach_ModAlt Dec 03 '19

Finals in two weeks? Jeez what university do you go to. Ive done finals the first week of december for the last 3 years. I couldn't imagine schoolin it up almost to christmas

4

u/[deleted] Dec 03 '19

It’s my last final and it’s on the 17th. My earliest is in a week (luckily it’s for an easy class).

3

u/Alchestbreach_ModAlt Dec 03 '19

You got this. Just remember 2 things.

  1. Array index start at zero

  2. You can pretty much use any primative data type for switch statements too.

→ More replies (11)
→ More replies (9)