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.
Interesting question! Let's test:
JS Benchmark for several floor function alternatives
Results:
Math.floor
is about the same speed as other numeric methods for flooring a number, and all are far faster than you'll ever have to worry about.Conclusion: Use Math.floor for readability, but these kinds of micro-optimisations really do not matter lol.
Is it faster to use '~~' than 'floor' or is it the same?
that's exactly what I watned to write.
it's not fun, man!
How can it be clever or BestPractices??
This comment is hidden because it contains spoiler information about the solution
Solved it. lol
I spent 30mins and didn't finish it even I have a good Js and Music knowledge. lol
I can solive it but it's definistely not for 7kyu.
two loops isn't the best solution. check out my solution.
it is not still updated yet. :((
fastest 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
your solution is worst. :) O(n)(n) sine test is in for loop.
Loading more items...