great video, I wanna know what is that memory graph at the end of submitting response
@CodeWithZiАй бұрын
Glad you found it useful! The memory usage comes from storing variables like minPrice and maxProfit, but overall, it’s a space-efficient solution because it only uses a constant amount of extra space aka O(1) space complexity.