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.
Yep, that was it. Thanks bud.
Probably this:
Test fails for Java with
expected:<4 years, 6[8 days, 3 hours and 4 minute]s> but was:<4 years, 6[7 days, 3 hours, 48 minutes and 56 second]s>
Asserted case (4 years, 68 days, 3 hours and 4 minutes) equals to 132 113 944 seconds. When run locally that's what I'm getting. Is the test case wrong?
Due to changes in Haskell the new type signature of the solution should be
(Integral i, Show i) => i -> String
instead of
Integral i => i -> String
Nice kata. It had all the necessary information in the description of all edge cases to consider.
This comment is hidden because it contains spoiler information about the solution
it's not supposed to be easy
maybe I'm not ready for 2kyu kata; haft a day trying to fix my code but it still not work. Good luck to those who want to try this. :/
10 November 2024
170 lines of code. Python. My time is 2142.13ms
This one is not hard, it took me only 8 hours.
Nice Kata! However, Java tests (random tests) dont really test the solution properly, as there are 99,9% chance that the time chunk will end with seconds. This way, u can just use "...and second(s)", as there are almost never a test ending with days/hours (which needs to be solved through "...days and 3 hours").
I suggest adding some manually writen tests exactly for those cases, otherwise not fully-solved Katas are getting through.
Nice one indeed, i actualy did the smae as you.
This comment is hidden because it contains spoiler information about the solution
means that the tests expected
y
but your code returnedx
. you are missing a comma after182 days
. please do not raise issues so lightly in the future, ask questions instead.Error in browser
Expected : 182 days 1 hour, 44 minutes and 40 seconds
to equal : 182 days, 1 hour, 44 minutes and 40 seconds
But in my vscode i get 182 days 1 hour, 44 minutes and 40 seconds
How can this be?
wow
Loading more items...