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.
same bro AHAH didn't know php can do that xD
what a hack! i didn't knew that you can use expressions in switch-case. Cool, but is it good practice?
Okay, figured it out - but I don't think this is an 8 kyu kata. 7, maybe...
As others have pointed out, the PHP submission tests are buggy: "Missing argument 1 for howManyLightsabersDoYouOwn(), called in /home/codewarrior/run.php on line 14 and defined"
remainder(-1,0) doesn't work for tests. Expects null, should be 0.
The binary tests don't remove special characters (EOT, etc), our solution does... Pretty sure handling special characters in a special way is way above an 8 kyu kata.
Was also my solution. Won't pass the binary test for some reason
This comment is hidden because it contains spoiler information about the solution