One of the Python solutions admits to "cheating" by hardcoding the 4 tricky test cases. Random tests are usually added to defeat that approach. A halfway measure might be testing all values from 03:00 to 04:00. Overall a nice problem with numerous corners... perhaps more difficult than most 7 kyu problems.
that makes the kata easily cheatable. I tend to think this isn't a good idea. Imo, it would be better to test like 75% of all the posible values to still keep part of the reasons we now ask for random tests systematically.
busTimer("01:56")
should return239
as the first bus leaves at"06:00"
. Not an issue. Read the description.01:56 - 14 min, what???? may be 239?? (js)
In this FAQ you can see how to get inputs for failing tests.
For some reason, I pass all tests but fail when I push Attempt, and it is not shown what tests exactly I fail then.
One of the Python solutions admits to "cheating" by hardcoding the 4 tricky test cases. Random tests are usually added to defeat that approach. A halfway measure might be testing all values from 03:00 to 04:00. Overall a nice problem with numerous corners... perhaps more difficult than most 7 kyu problems.
check
Python translation. Please, review and approve (the author is inactive).
well, ok... x)
By hardcoding 1440 inputs? Seems unrealistic to me.
Now all possible inputs are tested.
that makes the kata easily cheatable. I tend to think this isn't a good idea. Imo, it would be better to test like 75% of all the posible values to still keep part of the reasons we now ask for random tests systematically.
Testing a bunch of inputs randomly is not good enough. Re-raised with a "better" issue.
With such low input range, all possible values should be tested.
Another major bug.
Loading more items...