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 such a helpful and clear explanation of this solution. Thank you for taking the time to write this out!
Hilarious
How so? Integer multiplication and division by two are internally realized using bit shifts:
Which of these is better? (In my own experiments, I found only a negligible speed difference < 1%)
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
Hi,
Please note that the comments you write under solutions are visible through any user's dashboard, so think about using the spoiler flag when you give away most of the solution or critical information.
Cheers
This comment is hidden because it contains spoiler information about the solution
Agree with her, to optimize it would be nice to remove it then the performance would be awesome
It's great and optimized but the elements are being removed from the array and what it we have to use the same array later in the program? It's clever but not a best practice. BTW good efforts :)
This comment is hidden because it contains spoiler information about the solution
nice one :)
How did you even come to that conclusion?
This incorrect solution sometimes passes. Fixed tests should be added.
So what? I see 100 consecutive
true
-tests and 100 consecutivefalse
-tests - is this random or not?Loading more items...