Daily challenge for 2025-01-06
6. Maximum Subarray
Write a function solve that finds the nonempty contiguous subarray with the largest sum in a list.
Example:Input: [-2,1,-3,4,-1,2,1,-5,4]Output: 6
Run this challenge interactively in Python or JavaScript when the app loads.