• + 2 comments

    It's a nice O(n) solution.