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.
No. If you initialise sum with the value 0.0 and the array is empty then your program will just return 0.0. The for used here is a for each, so if there is nothing in the array it won't do anything.
input number of 25 bills number of 50 bills
25 1 0
50 0 1
25 1 1
100 0 0
25 1 0
25 2 0
50 1 1
100 0 0
25 1 0
50 0 1
25 1 1
100 0 0
25 1 0
25 2 0
50 1 1
100 0 0
answer YES
Just print peopleInLine to see the inputed test.
I had problems with that test as well. Printing the input helped me realise I had misunderstood the requirement.
You are right. I missunderstood the requirement.
Test number 6 is broken in Java. It expects YES when the answer is NO