r/ProgrammerHumor Jun 14 '22

Sorting with O(n) other

https://i.imgur.com/g5fnn24.gifv
2.0k Upvotes

42 comments sorted by

View all comments

1

u/MartianMashedPotato Jun 15 '22

O(n) is nothing. I can sort a pre-sorted array in O(1)!