This comment is hidden because it contains spoiler information about the solution
Agree
No point in a class with 1 effectively static method. Random tests shouldn't generate non-positive numbers.
class
Then it should probably be just a function, why the extra noise?
I mean, assertEquals("", Solution().repeatStr(-10, "kata")) doesn't look like a valid case.
assertEquals("", Solution().repeatStr(-10, "kata"))
THe descrition is just like the original. Changed!
No, any reason at all
Any reason why the function is not package-level or in the companion object?
There's nothing about the negative count in the description.
Recursive. Nice and easy!
Really clever!
Thanks for the comment, really usefull
Es lo que tiene que las expresiones regulares no te parezcan magia negra
Loading collection data...
This comment is hidden because it contains spoiler information about the solution
Agree
No point in a
class
with 1 effectively static method.Random tests shouldn't generate non-positive numbers.
Then it should probably be just a function, why the extra noise?
I mean,
assertEquals("", Solution().repeatStr(-10, "kata"))
doesn't look like a valid case.THe descrition is just like the original. Changed!
No, any reason at all
Any reason why the function is not package-level or in the companion object?
There's nothing about the negative count in the description.
Recursive. Nice and easy!
Really clever!
Thanks for the comment, really usefull
Es lo que tiene que las expresiones regulares no te parezcan magia negra