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
Isn't the time complexity O(n)? At least O(n²/(n+1)).
I did the exact same solution but it kept timing out. Why?
very unique.
why didn't you remove the last two lines?
please leave some jobs to the rest of us.
I just realize that it had something to do with aritmethic progressions. Then I read the respective chapter and I found the right formula.
Thanks.
What kind of witchcraft is 'arr[0::,-1::-1].transpose()'?
I was so happy with my solution , but then I saw this one.
Too clever.
Best solution!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
O(0) time complexity for sure.
Loading more items...