Optimial strategy -1

https://ide.codingblocks.com/s/61410 it my recursive approach please check it give wrong ans for my last test case

this is not resolved

this is not resolved

@Khushboo please debug it

@proRram please help

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

@LPL010015 thank you so much bhaiya