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.
One way is to keep the unique elements in a separate array or set and skip
arr.push([text[i], count]);
whentext[i]
is in this array or set. Regards, suic@Spindle: It's javascript.
What programming language?
It would also help to format your code.
You choose.
flat
is available in Node 11+If you post your with proper markdown (remember to use a spoiler tag), then someone can help you.
You're failing the 3rd test with language "IP_ADDRESS_INVALID" - it should return
'Welcome'
if language is not in the list, but you returnedundefined
.