Code giving wrong answer in test cases but correct answer in sample test cases. https://ide.codingblocks.com/s/78548
Wrong answer in test cases
Hi Rishabh
Your code doesn’t work your case
2
1 1 3 4
2 3
1 1
1 1 1
4 4 4 1
1 1
0
0
The output should 4 and 0.