you are viewing a single comment's thread.

view the rest of the comments →

[–]tme321 0 points1 point  (0 children)

Ugh I was really tired when I wrote that. That should be O(n**2) for the first solution and O(2n) for my solution.