I wanted to know what is wrong in this recursive code

I wanted to know what is wrong in this recursive code, i have not used DP, i wanted to know where the code is incorrect for the recursive form

Hey @apoorvsingh27
From the problem definition, say f (n) = ways to compute the change.

  • f (n) = max (n, f (n / 2) + f (n / 3) + f (n / 4)) (by definition).
    remove if else condition