keon / algorithms

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

Added Kadane algorithm for max_contiguous_subsequence_sum problem with requested changes. #861

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.

854

ankit167 commented 2 years ago

Please fix flake8 issues reported as part of the checks https://github.com/keon/algorithms/runs/5460488708?check_suite_focus=true#step:5:901

iabhishek15 commented 2 years ago

updated the file, can you please check for flake8 issues again and try to merge.