https://ide.codingblocks.com/s/144588 This is my code I am unable to debug it.
2 test cases going wrong
Do this question also include negative numbers
Hey @tanjuljain19,
Your code will not work for input such as:
2
9 9
2
1 1
Correct answer will be:
1, 1, 0, END
your code will only give:
1, 0, END
No the question doesn’t include negative numbers.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.