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.
bottom left corner is [0,0]
size of map is NxN
top right corner is [N-1, N-1]
it's all because you starting count from ZERO, not from ONE
JaywalkerZA,
Your instructions say:
"Please write me a function that will return the shortest amount of button presses to get to the given time (As displayed on the screen)."
This to me means that if I'm given say "01:30" then the "shortest amount of button presses to get the given time" is 3 or "90" and enter. The instructions are not clear.
I've hard coded my answers for "01:05" and "01:23" because it was not clear that you wish for us to write the input exactly. You should provide "01:01" as an example test case for this to be clear to future participants.
Funny kata. :)
Pretty good Kata, have a lot of fun solving it
I'm so suprised that a solution to this kata can be so clean.
Ok I've reverted the PHP and Javascript back to camelCase
Sorry I must have slipped upt while doing something dumb. I've fixed it.
Fixed, sorry that must have slipped by
( JS )
Random tests compare user answer to itself. Should use a reference solution.
I checked it.
assert.strictEqual(microwave_least_moves(random.join(':')), microwave_least_moves(random.join(':')))
The random tests compare the user answer to itself, instead of against a reference solution.
That's not how it's done.
you can do this:
but javascript & PHP should be
camelCase
(anter69 was only talking about Python)
Note that previous solutions may not work anymore, as I have updated the casing of the required method, as per anter69's suggestion.
Hi, I've updated the casing of all languages except C#
Loading more items...