https://ide.codingblocks.com/s/63549
Two test cases passed, two didn’t. Please hep me find the error in my code.
https://ide.codingblocks.com/s/63549
Two test cases passed, two didn’t. Please hep me find the error in my code.
Hi HARSH, you need to rectify a bug in your code. Your code works fine for all types of testcases except for this one:
// INPUT
5
9 2 3 4 7
5
9 2 3 4 4
// EXPECTED OUTPUT
1, 8, 4, 6, 9, 1, END
// YOUR OUTPUT
8, 4, 6, 9, 1, END
Hope this helps