Thanks a lot! Now I know how to recursively sort alphabets :)
5 - 6 kyu is quite ok for this, if you look for older kata, they are easier. Its hyperinflation in difficulty ranking happening.
C++ tests are not random tests
Difficulty can vary between languages. Most languages do not require lots of boilerplate, so your argument would not apply to them.
the function needs to return a string to be in accordance with the other translations. i agree that the exact definition of a "string" in C is rather ambiguous (could be a malloced string, a global or static char array, a pointer to a string litteral ...)
however, since the returned pointer is not freed in this kata, the user has several possibilities and it should be possible to come up with a solution after some research, even for a complete begginner
C (and NASM or FORTRAN) versions are almost always harder than other languages, but that's unavoidable when you choose to program in a low level language
nice kata! enjoyed it!
OMG Thank you
bb bb bb
There are three there.
search_substr( 'aaa', 'aa' ) # should return 2
it passes 49, yet misses only 1:
Testing for search_substr('cbbbbbcbbcccccacbabc', 'bb', False)
It should work for random inputs too: 2 should equal 3
why is this not considered overlap? What does overlap mean to this kata?
it should be clearer now.
i agree that the description was quite hard to understand,
so i changed it a bit and added a more explicit example.
let me know if it's clearer now or something can be improved.
Ha so simple... it doesn't ask that I print the function. Thanks