Doubt doubt doubt

Problem in my code…I am getting different answer in Bottom Up approach.

@parth_tyagi your code have a few issues

  1. line 51 use i instead of n
  2. line 54 use dp[subproblem] instead subproblem
    Coding Blocks IDE
    this is the changed code if your issue still exists let me know and if clear mark it as resolved and rate my experience

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.