• + 0 comments

    How can this be O(1) space complexity if you allocate new array. This is O(n) space