I always prefer to solve a DP problem using memoization unlike the popular way of using loops.
Is my approach wrong? If yes, can you please provide reasons?
Out of the two is there any preferred way to solve a DP problem in interviews?
TIA