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.
Ok, thank you for your answer.
How can sorting on each step be a best practice?
But it is clever without doubt.
This comment is hidden because it contains spoiler information about the solution
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
This comment is hidden because it contains spoiler information about the solution
Actually this approach is a huge loser in benchmark tests.
Lol! The author should add test cases.
Ok. What if n = 1 and m = 0?
This comment is hidden because it contains spoiler information about the solution
What if m == 0 ?
Brilliant!
Ok, thanks!
Hi! I'm new here, thank you! Where will my comment be visible for those who wouldn't have solved the puzzle unless it is marked as a spoiler?
Loading more items...