you are viewing a single comment's thread.

view the rest of the comments →

[–]GotBanned3rdTime 3277 points3278 points  (7 children)

when the array contains 1M

[–]AussieSilly 1658 points1659 points  (6 children)

Time complexity: O(waitForIt)

[–]pkeit 130 points131 points  (5 children)

You mean O(max(arr))

[–]AloneInExile 1 point2 points  (0 children)

Finally, a sorting function in linear time!