I wrote my code and stuck at a point
problem https://leetcode.com/problems/coin-change-2/
my solution code :
I know my solution is giving REDUNDANT answers like
2+2+1 and 1+2+2 , 2+1+2 are considered with permutations how to fix this any idea ?