I ran into the same problem too with Java. I was not able to get satisfactory results by rounding. The expected values of the random tests remained off by one.
The inputs are not the worth. The inputs are the numbers of each race that are in the armies. You have to multiply the numbers times the worths that are given in the description. The worths always stay the same
I am not getting you,if I'm getting worth directly as input so why should I maintain history of any race to worth? I do not need it while calculating the result!
OP solved it, closing
You wish was granted some time ago
That's not a suggestion.
Not an issue
This is a bug. Clearly with peopleInLine = [25,25,25,25,25,100]; you have enough cash and bills for all so you should expect a YES.
One of the test values is zero, gives an
ArgumentOutOfRangeException
which is expectedWhat language are you using here?
I already have tests for different currencies.
Rather than ceiling or flooring, just round your answer to the nearest int.
I ran into the same problem too with Java. I was not able to get satisfactory results by rounding. The expected values of the random tests remained off by one.
I had the same problem. You need to round up the result.
(~_) Thanks a lot.
The inputs are not the worth. The inputs are the numbers of each race that are in the armies. You have to multiply the numbers times the worths that are given in the description. The worths always stay the same
I am not getting you,if I'm getting worth directly as input so why should I maintain history of any race to worth? I do not need it while calculating the result!
Loading more items...