Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fixes(#2877)#2913

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
siddhant2002 wants to merge27 commits intoTheAlgorithms:masterfromsiddhant2002:master
Closed

Fixes(#2877)#2913

siddhant2002 wants to merge27 commits intoTheAlgorithms:masterfromsiddhant2002:master

Conversation

@siddhant2002
Copy link
Contributor

@siddhant2002siddhant2002 commentedJan 22, 2022
edited
Loading

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

References

Checklist:

  • I have readCONTRIBUTING.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. To ease review, please open separate PRs for separate algorithms.
  • All new Java files are placed inside an existing directory.
  • All filenames are in all uppercase characters with no spaces or dashes.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message containsFixes: #{$ISSUE_NO}.

siddhant2002and others added22 commitsDecember 5, 2021 20:16
@siddhant2002
Copy link
ContributorAuthor

@siriak please check the updated pr for maximum subarray sum

Copy link
Member

@siriaksiriak left a comment

Choose a reason for hiding this comment

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

Thanks for contributing, this algorithm is already present herehttps://github.com/TheAlgorithms/Java/blob/9fb3364cccc5373c32dbdb661f773c5ee753c77a/src/main/java/com/thealgorithms/dynamicprogramming/KadaneAlgorithm.java as far as I can tell, but the old implementation is missing tests, so your improvements are welcome. Could you consolidate your and existing implementations into one?

Comment on lines 10 to 11
int a[]={-1};
assertTrue(KadaneAlgorithm.max_Sum(a));
Copy link
Member

Choose a reason for hiding this comment

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

What does it mean? The purpose of the algorithm is to find the largest possible sum, why does it return bool?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Basically it's checking with the predicted answer

@siriaksiriak mentioned this pull requestFeb 12, 2022
12 tasks
@794547955
Copy link

794547955 commentedFeb 12, 2022 via email

这是来自QQ邮箱的假期自动回复邮件。 您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

@CrpMihasha
Copy link

CrpMihasha commentedFeb 12, 2022 via email

亲,邮件已收到

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@siriaksiriaksiriak requested changes

@yanglbmeyanglbmeAwaiting requested review from yanglbmeyanglbme is a code owner

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@siddhant2002@794547955@CrpMihasha@siriak

[8]ページ先頭

©2009-2025 Movatter.jp