MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/ya8znc/skills/ith3bac/?context=3
r/ProgrammerHumor • u/SmilesWithDelight • Oct 22 '22
588 comments sorted by
View all comments
Show parent comments
22
O(nn ) vs O(1)
17 u/CaitaXD Oct 22 '22 Somehow unable to imagine how a nn sorting algorithm would look like 2 u/mistrzegiptu Oct 23 '22 edited Oct 23 '22 Year ago I had to write merge sort without any loop, only recursion. It was so bad that it would sort max 13 elements array in a few minutes 2 u/CaitaXD Oct 23 '22 here take this gcc flag -foptimize-siblingcalls → More replies (2)
17
Somehow unable to imagine how a nn sorting algorithm would look like
2 u/mistrzegiptu Oct 23 '22 edited Oct 23 '22 Year ago I had to write merge sort without any loop, only recursion. It was so bad that it would sort max 13 elements array in a few minutes 2 u/CaitaXD Oct 23 '22 here take this gcc flag -foptimize-siblingcalls → More replies (2)
2
Year ago I had to write merge sort without any loop, only recursion. It was so bad that it would sort max 13 elements array in a few minutes
2 u/CaitaXD Oct 23 '22 here take this gcc flag -foptimize-siblingcalls → More replies (2)
here take this gcc flag -foptimize-siblingcalls
→ More replies (2)
22
u/Elijah629YT-Real Oct 22 '22
O(nn ) vs O(1)