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.
The returned value will be negative in case of the following input (Will not be long):
int n = 2;
int m = 1000000000;
Plus, it takes too much time in case of such inputs as too many additional numbers are generated
with that range method then to be filtered.
Please don't post code...
This comment is hidden because it contains spoiler information about the solution
ok a massive problem for me... !
done the code fine, but I keep failing the test where an empty array is handed to me, and then I cant coerce nil into integer. Thats fine.
I try every possible solution, break, exit, return, if statements when arr.empty? but none seem to work. Help?
I see your point, but 2 percent is not really 2.
2 percent is actually written as 0.02..
so you need to divide 2 by 100 to get 0.02
as a result you need to do the following
interest per day in decimal = (360 * 100) = 36000
This comment is hidden because it contains spoiler information about the solution
Hint: division in ruby is floor division by default; e.g.
3 / 2 = 1
This comment is hidden because it contains spoiler information about the solution
never round before the last step.
This comment is hidden because it contains spoiler information about the solution