My code is running and giving output but at the time of submission it gives run error. Why?
Max SubArray Sum
Hello @akankshaanand99,
You are not satisfying the constraints mentioned in the question:
1 <= N <= 100000
1 <= t <= 20
-100000000 <= A[i] <= 100000000
I have modified your code:
Hope, this would help.
Give a like, if you are satisfied.
1 Like
Thanks! It worked after the modification.
Anytime.
Please, mark this doubt as resolved.