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 is a solution but remember guys, the O notation for this is B(n * m) there's not better solution talking about Big o but we can use join or repat that internaly improve the performance. At the end the big o is B(n * m) but internaly we can improve a little bit the performance c:
Code formatting standards are indeed crucial!
Good catch. This indentation is the classic example of horrible misleading.
more logical when i=1; i<=n
the same code this answer is really clear and clean more practice than repeat
I like how different the answers are here. I like how you solved it.
came up with the same. But I have used while loop instead
This is a straightforward solution.
Just one change we need to change the var to let.
Nowadays, the best practice is to use the let instead of var
oh right, still confused regarding that way of writing code. Thanks :)
That return actually outside the loop, because he didnt add {}. The loop without curly bracket only take one action.
nice, I came up with the same code.:D except the return is outside the loop
yw :)
Yes, you are right, I've just forgot some peaces of that loop concept. Thanks for your reply.
Hello,
the "i" is not important to use, we just use it to loop for n-times :)
This comment is hidden because it contains spoiler information about the solution
Loading more items...