You are viewing a single comment's thread. Return to all comments →
your solution is not memory-efficient since you don't need an array. On each array step save maximum of the currenct sum and calculated one to sum.
Seems like cookies are disabled on this browser, please enable them to open this website
2D Array - DS
You are viewing a single comment's thread. Return to all comments →
your solution is not memory-efficient since you don't need an array. On each array step save maximum of the currenct sum and calculated one to sum.