https://ide.codingblocks.com/s/51792
my code is working only for two sample cases. wht is the error ?
https://ide.codingblocks.com/s/51792
my code is working only for two sample cases. wht is the error ?
Hey Yukti, your code is not handling all the corner cases. for eg.
input:
3
5 5 5
3
5 5 5
your code’s output:
1, 1, 0, END
but the expected output is :
1, 1, 1, 0, END