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
Approved.
Go translation.
Hi! i got only one test failure (out of hundreds) '560 should equal 0' in Basic test-c-2 section (second or third test from the bottom)
I wonder what is the 'k' in that test to check my code? Thank you.
This solution was written in Python 2, where the division operator had a different behaviour.
how this solution was test-accepted? if there is an typeerror of non integer index
None should equal 'found the needle at position 3'
means your code returnsNone
, in general it means it returns nothing. You mustreturn
the result notprint
(you can print whatever you want for your convenience, but the tests don't take it into account). Justreturn your_result
, it's the same in all katas.the test result stands:
Log
found the needle at position 3
None should equal 'found the needle at position 3'
what is wrong with my solution?