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.
Nice kata with very clear boundaries and just enough edge cases to keep you honest. It’s simple on the surface, but it subtly tests whether you think in terms of time units rather than raw numbers, especially around zero and formatting.
I liked how this problem encourages separating concerns: first compute the logical values (hours and minutes), then handle presentation. That distinction mirrors real-world code more than it might seem at first glance. Overall, it’s a clean, practical exercise that rewards precision and readability over clever tricks—exactly the kind of problem that builds good habits.
Haskell translation
This answer erroneously passes. It should not pass because something like
Pas$w0rd//gets through, but there's no test case to catch that.Approved
python new test framework is required. updated in this fork
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
.
All above issues fixed (in python)
All above issues fixed (in python)
Definitely not enough honor.
@ THByt: warning, Anter69 is talking about using the edit panel of the kata directly, but I'm not sure you have enough honor to have access to this feature. If it's not the case, you'll have to fork your translation and submit a new one.
Yes, you can:
Further suggestions for python:
snake_casefor the function name, just make sure you keep compatibility with the older solutions, putting these lines at the top of the test block:random.randintfor generating random integersrandint(-100, 1000))Cheers
Loading more items...