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 solution is from 2015.
var in 2024 is insane.
I also used the same variable name.
This comment is hidden because it contains spoiler information about the 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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
clever concept
Makes this look so easy!
I know, but still 3n > n. Period.
Btw, O(3n) = O(n).
Upd.: Oh, I am already late. Not updated the page for a couple of minutes.
O(3n) == O(n)
in Big O notation, and there is no big difference in time difference.The complexity of this solution is O(3n) while it can be done in O(n). Why everybody is voting? Just because it is short?
This comment is hidden because it contains spoiler information about the solution
Loading more items...