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.
Thank you for your suggestion, but I do not know how to change.
This is great!
I'd suggest adding the following test case:
Which is used to test overriding of default values.
I doubt only if chinese can finish this kata.
I'm a chinese, but It's still very difficult to me -- too hard to find out a simple pattern, I have to use plenty of "if/else" to handle it.
our solutions are same ^^
haha
i like your idea about incrementing and decrementing
so powerful solution!
This is a great kata, i love it! Thanks author BattleRattle.
few people understand your imagination, but i do! ^ ^
brilliant! ^ ^
you should not use any temporary array or object.
I create a test which has some special characters in the text:
var fullText = 'abc\\defg';
var searchText = '\\de';
var result = searchSubstr(fullText, searchText);
Test.assertEquals(result, 1, 'failed');
While I am running the test, it is failed, though my solution can pass all of your test cases.
(I comment the coding in my solution, which is used to escape Special Characters of Regular Expression in the "searchText" so that it will not pass my own test).