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 had to click Train to figure out the real task here. The best description of this problem is hidden away in some comment in the code setup:
As far as the kata is right now the design is bad. Values of two semantics are mixed together with no way to tell between the both (not to mention exluding the option to have a price deduction of less than a dollar).
The result is suspect to floating point errors because no rounding is specified. e.g:
The
Order value should be rounded to two decimal points
part is not tested.Needs random tests.
I suggest replacing the word 'set' with the word 'list' in the description.
The word 'set' has a particular meaning: "a collection of unordered values with no duplicates"
and what is being described is a list of numbers which does include duplicates.