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.
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.
This kata is broken and can only be solved by hardcoding the basic tests so that you know when the random tests begin. The random tests do not follow the rules of the kata. Instead they require that you return the array with all 0's removed (and NOT moved to the end of the array). Please fix this broken Kata. It is obviously broken and has been for quite a while. PLEASE FIX IT.
Loading more items...