Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 754 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 754 Bytes

Kadane's algorithm

Kadane's Algorithm is a popular algorithm used to solve the maximum subarray sum problem efficiently in O(n) time. It finds the largest sum of a contiguous subarray within a one-dimensional array of numbers (both positive and negative).

Practice

References: