Question: (30 Points) Write a Python function that takes as input a list A (containing n numbers) and returns the maximum sum of consecutive numbers in

(30 Points) Write a Python function that takes as input a list A (containing n numbers) and returns the maximum sum of consecutive numbers in the list. For example, if A = [10,-50, 40, 20,-10, 20,-10, 5], then the output is 70. The reason is 40+20-10+20 (which is equal to 70) is the maximum sum of consecutive numbers in this list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
