This was surprisingly hard for a 7 kyu. When you see the short solutions afterwards it doesn't look like it, but getting your iter indices right, not mutating the input and not falling in traps of references vs copies takes some above 7 kyu skill.
It is often considered bad practice to use exceptions as flow control, but honestly, in this case, I will make an exception as Java sort of forces your hand.
C# translation
approved
Javascript translation
Approved
python new test framework is required. updated in this fork
This was surprisingly hard for a 7 kyu. When you see the short solutions afterwards it doesn't look like it, but getting your iter indices right, not mutating the input and not falling in traps of references vs copies takes some above 7 kyu skill.
It would be great to transition this one into JS.
It is often considered bad practice to use exceptions as flow control, but honestly, in this case, I will make an exception as Java sort of forces your hand.
It is indeed. But as you said: excersise.
This comment is hidden because it contains spoiler information about the solution
Very interesting view, sorry I just saw.
Have you changed your name? Gigi ^_^
OK, As you wish, I rewrite the test method and the random character generation function.
As an old Kata (I created it 10 months ago, it was my first Kata), I have almost forgotten the meaning of a pair of braces...
This comment is hidden because it contains spoiler information about the solution
Thanks for the discription. Now i know more than before a minute.
Please I struggle at this point since 4 hours.
Loading more items...