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.
I found a mistake in my solution.
It was rather an elementary one. :)
Thank you a lot.
POINT 1: Here is an example in the task:
findNthOccurrence("TestTest", "TestTestTestTest", 3) == 8
POINT 2: Here is a result for my solution:
expected:<-1> but was:<8>
this occurs for next input data:
str = TestTestTestTest
subStr = TestTest
occurrence = 3
I can't understand why there are different results for the same task...
At the beginning the class Leetspeak is declared as an independent class instead of being an inheritor of Encoder. Just "extends" is needed.