Very interesting, thank you!
The last digit of any integer can be found by taking the remainder after dividing by 10. For example 538 % 10 == 8. Hope that helps.
This comment is hidden because it contains spoiler information about the solution
guidelines are generally useless. They are not up to date at all.
I really liked the problem stated in this kata. Luckily I managed to overcome the rounding problems without any 'hacks', and anyway all problems I had were a result of not reading the desciption carefully enough (or maybe description was updated in the meantime? IDK).
I am just not sure how to rate the difficulty - CodeWars guidelines say 7 kyu, but my effort says 6 kyu. I think I'll go with 6.5 :)
Not at all, feel free to rewrite.
I misread the problem, and my first solution had an additional restriction in that it required each of the golfers to play with each of the other golfers exactly once.
Obviously that was the wrong solution and I had to rewrite it. But I thought the initial problem was interesting. Would you mind if I used this Kata and rewrote it to include the additional restriction?
spoiler flag, please...
Also it's the random tests, not fixed tests.
For which language? I just clicked on "Show Test Cases" and the code that people complained about is commented out:
# Possible nasty rounding issues around 4:24:59 vs 4:25:00
# Test.expect(clock_hands(17.5) == ["12:03:10", "01:08:38",
# "02:14:05", "03:19:32", "04:25:00", "05:30:27", "06:35:54",
# "07:41:21", "08:46:49", "09:52:16", "10:57:43"])
What rounding problem do you see?
The rounding issue below still exists in the random tests.
Python's three tests seems wrong, my code is right but can't pass :)