decided to diversify the same solutions :D
I also do not understand this, why stretch the code into a million lines, when the problem can be solved through two properties in one line.
On this site, as a rule, the best practice is the solution with the least number of rows
this is my first kata, sorry, but did not understand how to do random tests
This comment is hidden because it contains spoiler information about the solution
but randomtest does not accept such an answer in such a situation and leaves an error
Perhaps I misunderstood the task, if the input = "fdhghsdfdsfdsf", what should be the output? I have to return "fdhghsdfdsfdsf" or something else?
kata is broken, randomtest is incorrect!