Skip to content

Maximum Subarray Sum #224

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

Merged
merged 1 commit into from
Dec 15, 2017
Merged

Maximum Subarray Sum #224

merged 1 commit into from
Dec 15, 2017

Conversation

nandikeshsingh
Copy link
Contributor

@nandikeshsingh nandikeshsingh commented Dec 15, 2017

ISSUE NUMBER

This has no issue number but I sent this Algorithm earlier also (#73) which got closed because of some changes made to the directory structure.

SHORT DESCRIPTION

Maximum subarray sum calculated using Kadane's algorithm.

TESTING

Takes the size of an integer array and the integer array as input and prints maximum subarray sum as the output.
Some inputs with their correct outputs
input 1:
6
-1 3 -2 5 -6 1
output 1:
6

input 2:
8
-2 -3 4 -1 -2 1 5 -3
output 2:
7

@prateekiiest prateekiiest merged commit ed483af into codeIIEST:master Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants