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.
added by someone
Agreed. Also, in Go a return type of
(int, int)
would be more idiomatic than[2]int
(although more cumbersome to test)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.
This comment is hidden because it contains spoiler information about the solution
I totally re-wrote the C++ translation. Maybe you could have a look.
Please add
package kata
at the beginning of Go training template.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.
I am sorry but I don't see any problem. Are you sur that is the same tests?
This comment is hidden because it contains spoiler information about the solution