Back to QuestionsPractice with This Question
Maximum Subarray (Kadane's Algorithm)
96.1K views•Asked at Adobe•
Easy
Question Explain
Given an integer array `nums`, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.