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.
This comment is hidden because it contains spoiler information about the solution
Well I got that one wrong for sure.
Yeah I misunderstood the requirements.
You read too much into it. When it says "input constraints" it doesn't mean you need to verify the inputs fall into that range. It means that all test case inputs to the function you create will fall into those ranges.
I don't need to verify that h hours will be greater than or equal to 0 and less than or equal to 23 when the contraints tell me the input will be 0 <= h <= 23.
This is also incorrect. Needs to take constraints into account.
This is not a 7kyu kata...
no way
This comment is hidden because it contains spoiler information about the solution
Wow
same to me
hmmm, the error was in the test case. after I removed a couple cases it worked, I dont know how many variants I writ
FYI: Instead of
you can write
or (if
condition
is bool-ish and you must return a boolean)Ah, similar but slightly different! I'll check it out, thanks :)
Hendeca, check out my kata :)
Until the problem is fixed, I added a check for the basic tests. If the test is one of the basic tests, the correct solution is returned. If it is not one of the basic tests, the array with all 0's removed but NOT moved to the end of the array is returned. This solution is accepted despite the kata being broken.
Loading more items...