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:
nice, clean!
unthinkable :)
thanks it makes more sense now
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Code formatting standards are indeed crucial!
LOL
Сначала хотел через цикл for, но потом вспомнил метод floor.
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
Loading more items...