• + 0 comments

    O(n) is actual space complexity, other than that is the correct solution