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.
same
Hi, thank you for sharing your work around. But in this case when I print the original incoming string, I can see that it does not contain '\t' at all, yet it is expected in the output string. I am not sure why?
I got the same and "solved" it by including \t as an acceptable character. It's a bit weird.
One of the tests expects special characters to be retained, such as ~ / \ and others. Please fix the task, or remove this test?
Are we expected to insert '\t' in result string when incoming string does not have it?
My solution is failing the following input:
st = ' S]r(2 (y%nF=<
My result is:
result = Sr2ynF
I get the following error:
' Sr2ynF' should equal ' Sr2\tynF'
Thanks
approved
Prolog translation
Fixed in this fork
i didn't know that range function return a list . nice
nice solution
Both list comprehension and RE is O(n) in this case.
Clever but difficult to read
PHP:
JS:
mocha
+chai
should be enabledRandom tests do not test for non-string inputs
Added by OP, other languages have them
Loading more items...