-
Notifications
You must be signed in to change notification settings - Fork 98
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
Kadane's Algo #357
Kadane's Algo #357
Conversation
I think its done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maxsum value is updated.
@RAshid602, |
Can you delete replace.java file, |
@RAshid602 here is the easiest way to do this.
If it is not the last commit that deletes the file then change HEAD~1 with that commit hash. |
I am not been able to do that |
Ok if that is the case. Create a PR then. You may close this one, once you have read this comment. |
Issue Id you have worked upon -
#352
Briefly explain your program logic -
Here we will be given array an we have to find max sub Array
i).We will add the subArray and store in CurrentSum.
ii).If CurrentSum is greater than MaxSum update MaxSum,
iii).If CurrentSum is less than zero(negative) discard the sum.i.e.CurrentSum=0;
iv).Return the MaxSum.
Screenshots(Attach 2 screenshots of your own input and output) -
Checklist:
Eg - If your code follow the below guidelines. Kindly change [] to [x]
All the conditions should be fulfilled for considering your code for merging -
I have mentioned the question as comment in my solution file.
My code follows the guidelines of this project.
I have performed a self-review of my own code.
I have commented my code.
My code gives the correct output.
I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.
I affirm that I strictly follow contributing guidelines and code of conduct.