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.
hold my beer
The dir's order makes mistake for me(Chinese), I think the array2 is the order dic.Fuck
Damn. I feel stupid writing over 6 lines
jesus
As a word of caution to future professional developers:
I'd be leery of using
match
with a string. This turns into a regex, which has special meaning. Ifarray1
contained any strings with non-letter chars, like'.'
, thematch
would trip up certain tests.e.g.
'hello'.match('h.l.o')
returns a match.Also, if someone were trying to be malicious, it could be worse (could potentially crash things).
e.g.
'hello world'.match('(((((((.*)*)*)*)*)*)*)*x')
, in Firefox, freezes for a few seconds.I like this solution, it is concise and easy to read
This comment is hidden because it contains spoiler information about the solution
It returns duplicates :'(
the most beautiful thing I've ever seen
oh I think this is much simple solution
I really like how you did this 👏🏾
My thought as well.
Great solution, except I think that we better use includes() instead of
match()
. feels more suitable.Very good
Returns duplicates........
Loading more items...