Maximum sub array sum challenge

Sir, I have been trying to solve the problem using kadane’s algorithm but one of my test case isn’t running while running the same code in other ide platforms its working well can you please help me out

https://ide.codingblocks.com/s/628458 here is the code sir

Initialise cs =0
After that it should work

1 Like