• + 1 comment

    you mean O(n+k). nice solving