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
That´s quite a workaroud. Liked it. Very creative.
Test4 and last test print the same but these two cases are different. To avoid errors I will suppress my printing so that you can print and see yourself.
Re-read carefully the description (think of possible edge cases, see the remarks). Be sure that there are no errors in the tests. Cheers.
I totally re-wrote the C++ translation. Maybe you could have a look.
The pown function can cause an overflow exception, e.g:
Maybe you don't read correctly the result of the test: the expected result is true and you returned false.
PS: See the top of the page, 576 guys passed the PHP kata. If there were errors one can hope that somebody would have already seen them!
Found bug in PHP testcase
It is true, but in Attemt's testBasics it is expected false - http://prntscr.com/lxt4ma .
Please, check expected result in this test in Attempt's testBasics.