knapsack
knapsack copied to clipboard
A module for resource allocation solving
Results
2
knapsack issues
Sort by
recently updated
recently updated
newest added
The sort() function that's called after filtering the items was returning a boolean instead of `1`, `-1` or `0` as it is specified in the [standard](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort). It happens to work...
I think there's an issue with the algorithm - see provided test