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.
clearly didn't read the description
why same idea :P
Rust translation
Approved
good blesss.
Took me awhile to understand which method do we need to use for rounding numbers. For everyone wondering as I did:
I saw it now! thank you lots hobovsky :)
Your solution fails this example test:
assert.strictEqual(cookingTime("7500W", 0, 5, "600W"), "1 minutes 3 seconds");
Your solution returns 1'2", while correct answer is 1'3". In one place you handle rounding incorrectly, try to figure out where.
This comment is hidden because it contains spoiler information about the solution
Prolog translation
Approved
python new test framework is required. updated in this fork
I prefer this one for readability, very understandable at first glance
@angelplusultra
Distinct() keeps the first instance of an element and discards the rest.
The reason we reverse is because we want to keep the last item, not the first. A requirement from the kata description: "keeping the last ( rightmost ) occurrence of each element"
So we reverse it, remove the duplicates, then reverse it again to get it back to the original order.
I think this Kata is fundamentally flawed for the following reasons:
I would therefore propse that it be retired as having no value
Loading more items...