Skip to content

Add Kadane's algorithm for maximum subarray sum#14525

Open
saurav856 wants to merge 3 commits intoTheAlgorithms:masterfrom
saurav856:add-lcs-reconstruction
Open

Add Kadane's algorithm for maximum subarray sum#14525
saurav856 wants to merge 3 commits intoTheAlgorithms:masterfrom
saurav856:add-lcs-reconstruction

Conversation

@saurav856
Copy link
Copy Markdown

@saurav856 saurav856 commented Apr 9, 2026

Describe your change:

  • Add an algorithm?

Checklist:

  • I have read CONTRIBUTING.md
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.

Fixes #14525

@algorithms-keeper algorithms-keeper bot added the awaiting reviews This PR is ready to be reviewed label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants