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.
haha gauss' method go BRRR
who needs for loops
😂
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
That was dumb of me, it was a poor attempt at making the single int format work. I revamped the input format.
Can't believe I missed that, thank you.
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
Marking as resolved
Marking as resolved
Marking as resolved
Marking as resolved
Loading more items...