Maximum sum SubArray

hello @sehrawat
r u getting tle?

compile to ho raha ha aur input ka answer bhi thik aara ha

or kadane sa bhi nhi ho raaha

tumhari code ki time complexity O(N^3) hai isiliye wo given test case pe tle de raha.
try to code it using kadane

https://ide.codingblocks.com/s/363966 kadane

check now->

u need to run ur code for t test cases ,but u were running only for one case

ok done bahiya thank uu

bahiya agar saara input negative hua to

to maximum sum to 0 hoga

@sehrawat
image

kadane ko aise code karo, ye sab numbers pe kaam karega