keon / algorithms

Minimal examples of data structures and algorithms in Python
MIT License
23.77k stars 4.59k forks source link

kadane's algorithm added! #849

Closed iabhishek15 closed 2 years ago

iabhishek15 commented 2 years ago

I have added kadane's algorithm, which is one of the most general Greedy/DP algorithms for finding the maximum contiguous subsequence sum.

iabhishek15 commented 2 years ago

I will make the required changes as early as possible.