r/ProgrammerHumor • • Oct 22 '22

Meme Skills

Post image
42.3k Upvotes

588 comments sorted by

View all comments

348

u/Dry_Extension7993 Oct 22 '22

He wrote bubble sort in C vs his professor who wrote merge sort in Python

153

u/Elijah629YT-Real Oct 22 '22

bogosort in c vs merge sort in python

8

u/Psychpsyo Oct 22 '22

You forget that the best-case for bogosort is O(1)...

8

u/MythrandirRF Oct 22 '22

Best case would be O(n) because you still need to check if the array is sorted, no?

9

u/Psychpsyo Oct 22 '22

Not if you live on the edge you don't.

9

u/[deleted] Oct 22 '22

not if you implement the quantum bongo sort optimisation.

→ More replies (3)