Skip to content

thinkphp/kadane-algorithm

Repository files navigation

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:

About

Largest Sum Contiguous Subarray.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published