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.
Didn't know this. Thanks!
This comment is hidden because it contains spoiler information about the solution
but it is possible to import only particular function from lodash like that: import difference from 'lodash/difference';
One liners are fine, but with the prices of electricity, this function isn't very safe to run xD.
A const where you'd save the min would be a good first nudge in the right direction.
This comment is hidden because it contains spoiler information about the solution
Execution time dealing with all the functions call-stack is not going to like it, though using function is a good way to achieve code-modularity/reusibility, you can do such a thing as going overboard with it.
However, this code is readble, that's a plus :) ! (you might just do that with comments)
Although very sexy, wonder what this solution costs, since I am afraid there could be a O(N) time-execution behind the replace function. Definitly has the advantage of teaching the regex syntax though!
This is what happens when your IQ gets so high it overbounds and falls to other end of the gaussian curve; lol...
Clever one, but between getting indexOf of a letter and lastIndexOf you'd be wasting too much execution-time. Great readibility however!
Too sophisticated for the need at hand, but creative nonetheless. One notable issue is the function shift, it introduces a needless O(N) time-complexity.
But sure, at least some people got to know Lodash :D