You are viewing a single comment's thread. Return to all comments →
This is under dynamic i guess because we solving it by dividing it smaller problem (getting numbers of candies by iterating it in one direction) and then using this partial solution to iterate in reverese direction
No that is not valid. There are no 'overlapping' sub problems in this approach.