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.
yes, you shouldnt make it so returning anything is dependent on if one triplet found is actually invalid. I believe your mistake is in making it return no valid triples based off the fact that one triple had a > b. I would reccomend making it so a!>b is a condition within the statement that checks if for a given value of a, if a is triplet so it doesnt add an invalid ( a>b triplet to the list in the first place). Unless i misunderstand your problem i think that is what needs a fix.
a, the first element of the triple, has to be the smallest side. This is not true for 1128, 846, 1410.
This comment is hidden because it contains spoiler information about the solution
Remember the instructions : Bob also tries to play optimally.
In your case, Bob could take 9 cards by playing it smarter so Alice would be able to only take 4 cards.
I'll fix it now. Thanks a lot.
Doesn't make it any less stupid. My solution handles the =0 case without special code, and now I have to add some and make it uglier.
apparently, that was to make sure to handle the {input == 0} case separately...
Fixed!
@dpleshkov: Consider voting for this :) Regards, suic
Some randoms have more than 1 whitespace between words or at the start/begining of the string
Sorry, but the tests are already locked since a lot of people solved this kata. :(((
For instance, I had
which doesn't make sense: should the return string be stripped or not?
I agree with amarovita. I see no way that "he has only 24 hours left" could be interpreted as "24:00:00 hours is too long".
Well, good question. Actually it has to be true, because a day is slightly longer than 86400 seconds. But in fact, Santa has to be finished before the next day begins, he has to deliver the presents within 24 hours ;)