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]: http://www.codechef.com/viewsolution/6783919
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]: http://www.codechef.com/viewsolution/6783919
your solution is giving wrong output for following testcase
1
3 1 3
1 2
1 2 1
output should be 1