pls tell my why both my memization method and dynamic programming solution give different and wrong answer to calculate minimum no. of steps required to make digit 1 via dividing by 3,2 or subtracting by 1
link is https://ide.codingblocks.com/s/118940
Dynamic programming wa
i read your code it is correct
can you tell me in which testcase it is giving wrong ans?