i have applied kadane’s theorem but it says runtime error. even though kadane’s is fastest.
@lipikarustagi hey lipika declare int n; inside the loop and declare int a[n].