what is wrong in my code:
for finding maximum subarray sum,
why it’s not passing any testcase
Max subarray sum
hello @s.kumar
a) u r not taking input as per input format
b) ur approach has O(N^2) time complexity it will not pass, use kadane
what is wrong in my code:
for finding maximum subarray sum,
why it’s not passing any testcase
hello @s.kumar
a) u r not taking input as per input format
b) ur approach has O(N^2) time complexity it will not pass, use kadane