would u pls look at it?https://ide.codingblocks.com/s/248952
My code is having a problem with it
hello @sshreya2912

a)declare map outside solve function
b) in place of 1 it should be n.
c) there should be one more base case ie if n==0 return 0.
hello @sshreya2912

a)declare map outside solve function
b) in place of 1 it should be n.
c) there should be one more base case ie if n==0 return 0.