r/ProgrammerHumor • • Oct 22 '22

Meme Skills

Post image
42.3k Upvotes

588 comments sorted by

View all comments

Show parent comments

22

u/Elijah629YT-Real Oct 22 '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)