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.
I am sorry but I don't see any problem. Are you sur that is the same tests?