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.
Cool kata. First time seeing the "inner" function needing the "outer" function to work.
Approved
It means that the tests will never give you an input larger than 359999, not that you have to validate the input to make sure the input isn't larger than 359999
Why is nobody checking the valid range for seconds in their solutions? The instructions clearly state that the maximum value is 359999.
I did on C++ and on div by zero throw a domain exc, but 1 of random tests marked as failed, so I just commented out line with throwing. So, I don't agree with author about division by zero is ok, but this task is cool, thx for it.
Ahhhh I see, thank you so much !
You need to return the values, not print them. You also cannot
return print(x), because returning a print statement is the same as returning None.This comment is hidden because it contains spoiler information about the solution
Oh! Now I got it! Nice little problem
i can get it with one extra space in the front, or without the spaces altogether, or with one extra Ho, but can't get it right :(
Fixed in this fork
Enabled in this fork
indeed, the reference solution was not ordering by
team_id. fixed.Tests ( should ) make sure there is no division by zero. Is this an actual problem or a hypothetical; does this actually occur? If so, in what language(s) ?
You didn't mention what you have to do if you have a division by zero...
Loading more items...