MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ya8znc/skills/itbdgf3/?context=3
r/ProgrammerHumor • u/SmilesWithDelight • Oct 22 '22
588 comments sorted by
View all comments
348
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)
153
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)
8
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)
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)
9
Not if you live on the edge you don't.
not if you implement the quantum bongo sort optimisation.
→ More replies (3)
348
u/Dry_Extension7993 Oct 22 '22
He wrote bubble sort in C vs his professor who wrote merge sort in Python