Interview Questions
Interview Guides
Experiences
Explore
Get started
Sign in
Interview Guides
All questions
/
Coding
Maximum Subarray with Kadane
Medium
Asked at 2 companies
Arrays
Greedy
Algorithms
Problem
Given an array of integers, find the contiguous subarray with the largest sum (Kadane’s Algorithm).
Question
Answer
Problem
Given an array of integers, find the contiguous subarray with the largest sum (Kadane’s Algorithm).
Your answer
Edit
Preview
Try one AI text evaluation on us
Get structured feedback, scored against a 4-axis rubric. Premium unlocks unlimited.
0 words
target ~200
Try a free preview
Stuck? Get a hint
Past attempts
Up next
Maximum Subarray with Kadane
Medium
Max Sum Subarray in O(n)
Medium
Maximum Sum Subarray
Medium
Next question
Maximum Subarray with Kadane | Dataford Interview Questions