The [link][1] to my solution and results.
I don’t understand why I am getting wrong answers for the question? Can someone please explain?
[1]: CodeChef: Practical coding for everyone
The [link][1] to my solution and results.
I don’t understand why I am getting wrong answers for the question? Can someone please explain?
[1]: CodeChef: Practical coding for everyone
your solution is giving wrong output for following testcase
1
3 1 3
1 2
1 2 1
output should be 1