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.
Pretty challenging kata of the series as well as the other similar ones, funny to exercise and practice with.
Simple and basic kata to practice with.
Rejected since another fork was approved.
Resolved in this fork.
Fork approved by author, resolving.
17 is the correct solution; the problem states that kings are either worth 10 or the anounced number (9 in that test case), whichever yields the better solution. In this case, the king value of 10 gives 17 (1+1+1+10+4).
In JavaScript, the ['A', 'A', 'A', 'K', '4'] test is poorly written since, by the rules of the kata, it equals 16, but the test says it should be 17. I succeeded every other test but I had to hack the solution just so it could give 17 on that specific test case.
thanks!
python new test framework is required. updated in this fork
Python: Random tests are vulnerable to input modification
.
python new test frame work
This comment is hidden because it contains spoiler information about the solution
Forget it, the solution used in tests is fine. Approved.
Reference solution is horrible... Wouldn't it be a good opportunity to change to a better one?
Loading more items...