Sorry to break this to you, but it seems like this kata is unique to JavaScript: where there is a "weird" behavior in the RegExp's method. So it wouldn't be able to translate well to other languages.
In the Python translation you proposed, the bug is on an entirely different thing, and it's a "normal" behavior you would expect because matching is by default case-sensitive. This not only make the translation differs to what the original author's idea has intended, but it also creates a gap in the difficulty.
A translation should substantially change neither the overall idea nor the requirements of the kata. It should be as consistent as possible with the original version in terms of difficulty, required performance, and overall composition. -Translation Authoring Guidelines
Thanks for this. I learned something new today.
What sorcery is this.. T_T
It's too easy for a 6kyu. It could be a 7kyu.
Nice!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I wouldn't be able to solve this without checking comments that there's specific method.
Learned something valuable which I don't think I would come across deliberately. Thanks!
Added random test for JavaScript
Nice kata. Didn't know such thing is possible.
Giving 99% of the solution to the solver for free is not how solution setups should be handled.
Sorry to break this to you, but it seems like this kata is unique to JavaScript: where there is a "weird" behavior in the RegExp's method. So it wouldn't be able to translate well to other languages.
In the Python translation you proposed, the bug is on an entirely different thing, and it's a "normal" behavior you would expect because matching is by default case-sensitive. This not only make the translation differs to what the original author's idea has intended, but it also creates a gap in the difficulty.
Try Python ;)
C++ translation (my first submission of a translation!)
I love this solution dude, well done.
Loading more items...