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.
a one liner that is actually easy to understand, good one.
Is it for getting a negative sum, so that inject subtracts it based on that instead of writing it seperately?
In the ternary operator's else condition, what is the purpose of -d.to_i?
I understand the to_i part, its the -d that is throwing me off.
This comment is hidden because it contains spoiler information about the solution
Any help on what ruby feature I should use to automatically call the next name and also will Argument error suffice for calling an error??
Correct me if I am wrong, but that is not said anywhere in the description.
This comment is hidden because it contains spoiler information about the solution
Where a and b are strings is the expession if a > b same as if a.length > b.length