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.
Nice, even if it appears having issues with cases in which one of the bounces isn't strictly > of window, like this:
assertEquals(1, BouncingBall.bouncingBall(2.0, 0.5, 1.0));
I like this idea too. the code is very clean
This comment is hidden because it contains spoiler information about the solution
Impotent to notice here this solution isn't performance-wise.
It allocates in memory lots of intermediate arrays. That might be costly and has to be avoided.
very nice
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
You should do a very simple code(KISS principle). May be after 5-10 years you would do it like this, may be not.
imho it is not necessary.
Something like this:
int[] a = {3, 2147483646};
int[] b = {9, 4};
returns true...
ну ты гнида
This comment is hidden because it contains spoiler information about the solution
i think that this code work very slow on big numbers
This comment is hidden because it contains spoiler information about the solution
how can i learn to code like this?
1 is not prime and 2 is prime. Your isPrime is incorrect.
Loading more items...