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.
Because it's local scope variable as well. So u can do whatever u want with it
This comment is hidden because it contains spoiler information about the solution
Without 'use strict' this will work
This comment is hidden because it contains spoiler information about the solution
100 actually
If not for the comments on the codewars site, who would have let me know it was possible to learn that you can learn that people learned this here?
bounce 0.66 is multiplier which change value of h bounce times (*0.66) with each bounce
dirs is an accumulator which has been initialized as []
This comment is hidden because it contains spoiler information about the solution
bitwise shift to the left
Without bounce, you don't know the rate of change for the height, so theres no way for you to calculate the number of times it will bounce to a height that is higher than the window
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
It would bounce back to 2/3s of its starting height. Then 2/3s of the peak of the next bounce.
This comment is hidden because it contains spoiler information about the solution
Loading more items...