Problem
Optimize the solution to achieve O(1) space for a problem that was initially solved with O(n) space.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.
Optimize the solution to achieve O(1) space for a problem that was initially solved with O(n) space.
You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.