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

Integer partition#24

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

Merged
64json merged 4 commits intoalgorithm-visualizer:masterfromEgraveline:Integer-Partition
May 22, 2020
Merged

Integer partition#24

64json merged 4 commits intoalgorithm-visualizer:masterfromEgraveline:Integer-Partition
May 22, 2020

Conversation

Egraveline
Copy link

this is a fix to the issue #284 detailed here:
algorithm-visualizer/algorithm-visualizer#284

It also had errors with the matrix which have been fixed. The code more closely resembles the code referenced in the README.
https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/integer-partition

I tried to keep the code as similar to the original as possible.

here are some screenshots of the errors.
before:
before
after:
after

Eti added4 commitsMay 22, 2020 18:46
returns the wrong total for some values of ne.g. when n is 6 returns 14 instead of 11This more closely resembles the code from referenced in the README:https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/integer-partition
on some values it would print wrong partitionse.g. when n is 6 [3,3,1] is printed but is not a valid output
@64json
Copy link
Member

Thanks for the fix!

@64json64json merged commit2881b3f intoalgorithm-visualizer:masterMay 22, 2020
@EgravelineEgraveline deleted the Integer-Partition branchMay 22, 2020 23:09
Copy link

@gifTa4gupzawkikwaqgifTa4gupzawkikwaq left a comment

Choose a reason for hiding this comment

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

Copy link

@gifTa4gupzawkikwaqgifTa4gupzawkikwaq left a comment

Choose a reason for hiding this comment

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


Copy link

@gifTa4gupzawkikwaqgifTa4gupzawkikwaq left a comment

Choose a reason for hiding this comment

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

Copy link

@gifTa4gupzawkikwaqgifTa4gupzawkikwaq left a comment

Choose a reason for hiding this comment

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


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

@gifTa4gupzawkikwaqgifTa4gupzawkikwaqgifTa4gupzawkikwaq left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Egraveline@64json@gifTa4gupzawkikwaq

[8]ページ先頭

©2009-2025 Movatter.jp