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.
Test #7 has a problem when trying to attempt. It says that I am returning
1
and expected-1
. But after debugging I realized that I'm actually returning-1
. Also, the test which is faling is the same as the tests for practic at "test" stage:Test.assert_equals(bouncingBall(40, 1, 10), -1)
andalmost the one i would use, if you see you are running 2 for loops, so your solution have more complexity while the input increase.
This comment is hidden because it contains spoiler information about the solution
beautifull