I am facing wrong answer error. I have run the code for a number of testcases but I am still facing wrong answers.
Kindly have a look at the code.
NEW APPROACH - https://ide.codingblocks.com/s/186784
Earlier this question was a part of RECURSION and I did that in HACKER BLOCKS but as I am now re-submitting the same solution , It’s giving wrong answer error on both the platforms.
OLD APPROACH - https://ide.codingblocks.com/s/186786