Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
I have a solution in Haskell that meets all of the test case requirements and which I think solves the kata, but when submitting the answer I get a traceback in whatever code is checking the solution.
Obviously this is due to my sierpinsky funciton using a type constraint not included in the function that checks the answer. I'm not sure how to go about solving this issue.
Yeah, I think that will make it much clearer. I know I misread it the first time, but with the new example, there's no chance of that now.
The only improvement that I can see is that it could be made learer in your example and writing that the value / weight ratio is what the greedy algorithm should use to sort the items.
The example made it seem like the raw value was the only thing concerning the knapsack picker.
I do not know what this is doing, but I like it.