Tried To Optimized The Solution Couldn't get the solution

Could You Please look at my code I tried to optimized because I am facing Tle and want to solve with top down apporach only.


refer to function moneyChange

@Chhavi Bansal It’s not working on all test cases

i am also facing issue with top down


heres a bottom up approach