can you please make out the error in my code as the test case is passing but the submission is getting failed.
ide->https://ide.codingblocks.com/s/249403
ques->https://www.interviewbit.com/problems/largest-continuous-sequence-zero-sum/
can you please make out the error in my code as the test case is passing but the submission is getting failed.
ide->https://ide.codingblocks.com/s/249403
ques->https://www.interviewbit.com/problems/largest-continuous-sequence-zero-sum/
hello @mikkyimran
ur code is correct.
just u need to handle the case where zero sum doesnt exist.
for that u can first initialise ur start and end with -1 and if after running alogorithm start variable still contans -1 then this indicates empty array so return empty array.
refer this ->