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.
It is very bad to iterate over the elements of a list and change them immediately.
While I agree on the part with the description cleanup, your example is wrong, as the wildcards could either be interpreted as 34567 which is not valid since 7 is not on the dice and otherwise 23456, where 3 violates the "only at be beginnig or end" rule.
13451 on the other hand is unclear if it would be accepted.
This comment is hidden because it contains spoiler information about the solution
Gave up trying to fix my code to deal with ties - this is way too hard for 6kyu
Description of a STRAIGHT could be cleaned up to clarify only 1 wildcard is accepted. It implies that a 1 at beginning and end (i.e. 14561) would qualify as a straight but when that roll came up in the random test cases it fails.
This also means it will never need to be used at the end because 13456 is the only combo with a wildcard.
I misread the description to be that the cost of the holiday plus the cost of the same amount of bottles is less than the full high st price of that many bottles. When I couldnt get it to work because all my tests failed with a value +1 over the expected value, I decremented my result. Looking at other solutions and rereading the description I understand now what I did wrong.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
it formats the value to display with 5 digits (d = digit)