It is used to find the Maximum Subarray Sum Optimally
This is an Example of Dynamic Programming (Smaller sub-problem + Reusing Results)
Time Complexity: O(n)
Space Complexity: O(1)
Kadane’s Algorithm is generally found in solution where the “shortest/longest, minimized/maximized, least/most, fewest/greatest, biggest/smallest” value needs to be found