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.
Hi Riffe01,
This is a great problem, but I think you've provided too much information on how to solve it. It takes some of the fun out of solving it! I suggest removing the "How to Approach" section. Describing the task and giving the examples is enough. Adding the tag "Dynamic Programming" provides a helpful suggestion on what approach to use. It's worth looking at other problems with the "Dynamic Programming" tag, to see if any of them are similar to this one.
The sample tests shouldn't print the results. Use the same style of test assertions as in the hidden tests.
It needs real random tests, which change every time somebody submits a solution. If you look at the solutions which have been submitted, you'll see that one person hardcoded the answers! Obviously that should not be allowed to pass. The only way to avoid that is to have real random tests. Look at some kata that you have solved and that have high satisfaction ratings and take a look at how they did the random tests. Also read Writing Submission Tests. It also needs tests with bigger lists, both fixed and random, to prevent a brute-force approach from working.
I didn't give a difficulty or satisfaction rating yet. If you address these issues I will do so.