If you had printed the random inputs, you would have seen "x" * Math.floor(Math.random() * 30) always evaluates to NaN.
Attention to detail, and extensive testing, are important when writing translations.
OP, you could have seen from the translation author's profile page this was their first translation. That means a thorough review is necessary. The Go translation is from a similarly inexperienced translation author; that should also have been reviewed better.
we kno that this problem is not very 7kyu lol
I'll keep that in mind for next time!
Hey, it happens.
I already fixed the kata. Fixing an already approved translation isn't going to do anything anyway.
This is what I get for writing code early in the morning. 😅
Switched to using the String.repeat method.
Looks bad.
If you had printed the random inputs, you would have seen
"x" * Math.floor(Math.random() * 30)
always evaluates toNaN
.Attention to detail, and extensive testing, are important when writing translations.
OP, you could have seen from the translation author's profile page this was their first translation. That means a thorough review is necessary. The Go translation is from a similarly inexperienced translation author; that should also have been reviewed better.
Whoops! Thanks!
Looks good!
But there is a typo in solution setup (
sixe
)