Showing Runtime error workin on compile and test
Showing Runtime error
Check now.
Also, this question you must solve using the Kadane’s algorithm.
compilation is successful and getting desired output
Check the above code, i have commented out your mistakes there.
where cannot see your comments
thanks pratyush kumar
still getting run time error even with corrected version
This is the improved version. You do not need to make an extra array for cumulative sum in Kadane algorithm
the problem was declaring a[1000] in my code
thanks pratyush bhai