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.
How so? It repeats the string n times.
Eh, no? There's nothing more to this than the simple condition in this solution...
Good solution, but there are more actions happening under the hood, even if the entry looks concise
cool
Now you know bro. Learning along the way ;)
Ideally, it shouldn't be an empty string. When the repeat number is 0, it means repeat 0 times, not erase the whole string. Which means when n is 0, it should simply output the string.
For a lot of users, we make a challeng out of making the answer as short as possible. Spaces are a waste of space ;-)
why don't you put spaces? This is hard to read
it doesn't work as expected
Thx for a good advice, mate!
Learn !== remember. Most important before write code - its think 'how can i solve this with methods' or 'what's methods we have'.
You can't learn all the methods, but you have to strive for it
Omg, no conocia repeat
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...