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.
beautifull!
This comment is hidden because it contains spoiler information about the solution
letter is not used?
Your solution fails on this test:
in_array(["foo bar", "foo", "bar"], ["foo", "bar"])
Sorry.
This solution allows duplicates in the answer and thus is wrong.
This comment is hidden because it contains spoiler information about the solution
Yes, this solution isn't exactly best practice even if it is syntactically short.
This comment is hidden because it contains spoiler information about the solution
Is it better to set
health - damage
to a variable to have the equation process just once? I'm still trying to understand pass-by-value vs pass-by-reference, and whether it even applies in situations like this. Obviously the gains are essentially non-existent in this exact case.Because the second returns nil in this case:
This comment is hidden because it contains spoiler information about the solution
How many words out there have 5000 letters?
isn't calling count on every character equal to a loop that iterates the whole array every time?
Use spoiler flag next time, please.
This comment is hidden because it contains spoiler information about the solution
Loading more items...