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.
i - .....
/*
A new movie has just been released! There are a lot of people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 dollar bill. A movie ticket costs 25 dollars.
Harry is currently working as a clerk. He wants to sell a ticket to every single person in this line.
Can Harry sell a ticket to every person and give change if he initially has no money and sells the tickets strictly in the people queue order?
Return YES, if Harry can sell a ticket to every person and give change with the bills he has at hand at that moment. Otherwise return NO.
EXAMPLES:
tickets([25, 25, 50]); // => YES
tickets([25, 100]); // => NO. Harry will not have enough money to give change to 100 dollars
tickets([25, 25, 50, 50, 100]); // => NO. Harry will not have the right bills to give 75 dollars of change (you can't make two bills of 25 from one of 50)
*/
I'm screaming at the ending
If I understand what you are asking then if I've owned the cat for < 15 catYears, or the dog for < 15 dogYears, then I have not yet owned them even for one full human year. Maybe I've just owned them for 0.75 human years (or whatever)...
The Kata says "Results are truncated whole numbers of human years", therefore anything < 1 will be expecting 0.
Make sense?
did you happen to find what they were looking for?
amazing
This comment is hidden because it contains spoiler information about the solution
14?
This comment is hidden because it contains spoiler information about the solution
oooh fun
que?
Im flabbergasted to say the very least
bruuuh i am laughing so hard
bruh, what ? teach me your ways Sensai
This comment is hidden because it contains spoiler information about the solution
Loading more items...