r/oddlysatisfying • • Sep 02 '19

Learn sorting algorithm with Kronk

8.9k Upvotes

58 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Sep 03 '19

It depends in the input if its almost sorted bubble sort is better

1

u/Mr_Redstoner Oh yes Sep 03 '19

For the right input Bogosort will be just as fast.

1

u/[deleted] Sep 03 '19

That doesnt mean its useful

1

u/Mr_Redstoner Oh yes Sep 03 '19

And I'm pretty sure the same goes for bubblesort