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.
|
is set union -- see the documentationCan you explain, please, what does "|" mean in this solution?
Similar to my solution :) you even made it cleaner than mine but the approach is the same
So far this is the best solution I have seen. Maybe not the most clever looking, but the first one that exhibits o(n)
This is probably the actual best practice. Doesn't mutate the input, and is infinitely faster for large arrays.
This comment is hidden because it contains spoiler information about the solution
Fixed.
I am wondering if this error has anything to do with the approach to solve the kata, or it's just an error.
TypeError: Cannot read property 'caller' of null
at /runner/frameworks/javascript/cw-2.js:159:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.exports.runInThisContext