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.
"Test Panic: division by zero" for some tests
This comment is hidden because it contains spoiler information about the solution
And how much it need to be?
Clever approach
waiting for someone to review
Golang translation for Leap year kata
Golang translation
Randints should be producing 12 and 7s, even if they aren't, the prior tests should cover.
Random tests seem a bit unfinished: it never produces 12 for hours and 7 for days. I think it should generate numbers [0;12] and [0;7]
Its just testing out of bounds and invalid strings
This comment is hidden because it contains spoiler information about the solution
I now state that, for the sake of this kata, workers never work more than 12 hours in a given day
There is also ambiguity in the format of 3-12-3. It is unclear whether 12 represents 12 o'clock or 24 o'clock.
It may be worth considering an alternative format.
Regarding your random example, 'workHours("3-8-5")', it is unclear whether the range is from 3 o'clock to 8 o'clock or from 3 o'clock to 20 o'clock.
You are passing integer in your sample tests: 9-5-5 (which results in -1), not string
Really satisfying kata after resolving
But it lacks cases so solution may be imperfect and still pass all the tests
Loading more items...