You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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>
0 commit comments