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.
Very cool solution, I need to get better at ternary statements and this helps thank you.
check this if may help https://www.javatpoint.com/java-string-replaceall
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.
Can anyone explaine that (".", "#")? thank you very much
wow. Nice
i though with the same logic but I consumed 15 lines of code, so thanks for this xD
Wow, I did not even think of using ?: in this kata. Nice!
Think how you give change, that's your problem, the test is ok.
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.
or the test is correct and you didn't understand the task correctly....
Test number 6 is broken in Java. It expects YES when the answer is NO