https://ide.codingblocks.com/s/61410 it my recursive approach please check it give wrong ans for my last test case
Optimial strategy -1
this is not resolved
this is not resolved
Hey neeraj, in your code first use the cmath header file…
2nd thing is that you have used int max = (q1,q2) which makes no sense
change it to int answer = max(q1,q2);
1 Like