How to approach DP problems in interviews?
I've been solving DP problems for 2 months now but I still can't solve new ones in interviews. I freeze up every time.
I can solve standard DP problems like knapsack, LIS, coin change etc. but when they modify the problem even slightly, I'm lost.
What's the right approach? Should I focus on recognizing patterns or should I try to derive the recurrence from scratch every time?
Also, does anyone have a list of the most frequently asked DP problems in FAANG interviews?