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.
This comment is hidden because it contains spoiler information about the solution
Poor explanation and setup :'(
Well, a given string repeat
0
times is definitely gonna be empty (same logic to all numbers multiplied by0
will be0
) Hence, closingThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why add it? Isn't it obvious? What should be returned instead?
Please, include in the kata that if n equals 0 then the function should return an empty string ''
Also, I just noticed a typo/grammatical error in the description
Java, Scala and Julia
should beJava, Scala, and Julia
. I thought I fixed it when I translated but I must have forgotten. Same for thePython, Haskell and Lua
bit, should bePython, Haskell, and Lua
.Approved, thanks
Scala translation
Backup your code, click Reset, paste it and try again. Or delete the first two lines of the sample tests.
Typescript version not working