When to use two pointers, dp or recursion or sliding window???

All these are used optimization problems .Can you give me any insight on when to use which ? I know i am being GREEDY here.

Comments (2)