Shows TLE. How to avoid that?
Hi akshat you have implemented a O(n^3) algorithm . You need to do it in O(n) time complexity. Read about kadane’s algorithm .You will get an idea on how to do it.
okay thanks!!! 
Hi akshat you have implemented a O(n^3) algorithm . You need to do it in O(n) time complexity. Read about kadane’s algorithm .You will get an idea on how to do it.
okay thanks!!! 