Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added implementatin for kadane's algorithm #1031

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fixed function parameters
sundaram123krishnan committed Apr 16, 2023
commit 65ecad80af70b9dd8847dbce5a168d9566f47b79
Original file line number Diff line number Diff line change
@@ -5,9 +5,10 @@
* @return {number[]}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return {number[]}
* @return {number}

*/

export default function kadane() {


export default function Kadane(array) {


// This algorithm works for both positive and negative values of the array