we are using a dynamic array in this problem to reduce the space complexity, right?
because I can’t see any other use of keep that memory reserved.
we are using a dynamic array in this problem to reduce the space complexity, right?
because I can’t see any other use of keep that memory reserved.