Skip to content
🔮Algorithm Visualizations
JavaScript Java C++
Branch: master
Clone or download

Latest commit

Egraveline and Eti Integer partition (#24)
* Fixed error in Integer Partition
returns the wrong total for some values of n
e.g. when n is 6 returns 14 instead of 11

This more closely resembles the code from referenced in the README:
https://github.com/trekhleb/javascript-algorithms/tree/master/src/algorithms/math/integer-partition

* added some simple comments

* fixed error in Integer Partition
on some values it would print wrong partitions
e.g. when n is 6 [3,3,1] is printed but is not a valid output

* fixed a typo

Co-authored-by: Eti <ethiennegraveline@gmail.com>
Latest commit 2881b3f May 22, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.images/contributing Add documentations Dec 9, 2018
.validate Add code validator and Travis CI Jun 13, 2019
Backtracking Improve Knuth-Morris-Pratt's String Search (#14) Oct 16, 2019
Branch and Bound Improve Knuth-Morris-Pratt's String Search (#14) Oct 16, 2019
Brute Force Add C++ implementation in Brute Force/Bubble Sort Dec 24, 2019
Divide and Conquer Try to solve code folding problem (#15) Oct 16, 2019
Dynamic Programming Integer partition (#24) May 22, 2020
Greedy Try to solve code folding problem (#15) Oct 16, 2019
Simple Recursive Add Cycle Detection (#22) Dec 24, 2019
Uncategorized Add Shortest Unsorted Continous Subarray (#20) Dec 19, 2019
.gitignore Add code validator and Travis CI Jun 13, 2019
.travis.yml Add code validator and Travis CI Jun 13, 2019
CONTRIBUTING.md Update documentation Jun 9, 2019
README.md Add code validator and Travis CI Jun 13, 2019
package-lock.json Add code validator and Travis CI Jun 13, 2019
package.json Add code validator and Travis CI Jun 13, 2019

README.md

You can’t perform that action at this time.