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
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
I never knew this technique can turn a string into an array. We learn everyday.
Awesome! I understand now. Thank you all.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Why does the bounce parameter even matter at all in this equation. Since the boy threw the ball from 'h' that means the initial height of the ball is the value of 'h'.
Loading more items...