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.
javascript has test case where 1 is not a power of 4 although 1 is a power of 4: 4^0 = 1
i guess there is no way to change it from issue to suggestion? I'll just mark this as resolved for now.
an example breakdown of a camera command byte would be helpful
needs examples. took me longer to figure out what was ment than neccessary.
user test cases missing
no predefined tests,
have to paste houses into code,
useless predefined targaryen variable,
error messages unhelpful
The clojure version includes a test like this:
(= true (isPowerOf4? 0))
But 0 is no power of 4, therefore the test should say false, should it not ?
-> 4 ^ (-1) = 0.25
4 ^ 0 = 1
4 ^ 1 = 4
etc.
Apparently it expects that you treat everything that is not a letter as a word seperator, so "aa1a" split into words would actually be ["aa","1","a"]
because "1" splits the word up. So you have to not only check for the "-" which splits the words, but also for numbers. Atleast that is how i got mine to work (I ran into the same problem).