One testcase giving wrong ans

Hello @aryanv,

You code is producing incorrect results for testcases like:
Example 1:
2 0
0 0
Expected Output:
0
0 0

Example 2:
1 0
0
Expected Output:
0
0

Hope, this would help.
Give a like if you are satisfied.

1 Like