• + 2 comments

    There's also an O(n) solution. :)