I’m trying to learn programming in Python. I am wondering how can I find out the maximum sum of a contiguous array. I need a starting point to get myself to it.
Here’s an example input that you can consider as an array:
[-2, -3, 4, -1, -2, 1, 5, -3]
Desired output: 7
How can I write a Python function to achieve this?
I’ve started learning Python. Guide me