mgechev / javascript-algorithms

💻 JavaScript implementations of computer science algorithms
https://mgechev.github.io/javascript-algorithms/
MIT License
7.83k stars 1.27k forks source link

O(n) Maximum subarray bugfix and tests #138

Closed emyarod closed 6 years ago

emyarod commented 6 years ago

Fix #137 and add tests for O(n) maximum subarray implementation.

mgechev commented 6 years ago

Outch! Thanks for the catch!