• + 1 comment

    Nice one-liner, but the complexity is O(n^2).