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.
What do you think it should be then? 🤨
nice
i did not love it i hate hard coded things
This comment is hidden because it contains spoiler information about the solution
For the labmda function inside the reduce() method the "(s,n,i)" are the parameters: s := accumulator, n := array element, i := array index. The accumulator is initialized with the last function parameter (e.g. 0). So the reduce method spins through all the values in the array performing the defined expression on each and accumulating the result. In this case it is the sum of the squares of differences. So here "s" is "sum", "n" is "number", and "i" is "index".
Great workings!
This is insightful
sometimes one wonders what occurs within their own skull...
This is indeed best practice.
What sorcery is this.. T_T
Never would have thought to use Boolean as a callback function, so clever!
there are many ways to slove this without regex
thanks for showing us the filter function this is very helpful
Great job refactoring the line of code into one line
This is a stack data structure.
When I tried to use || it just multiplied 5, -5 = -25 and told me I was incorrect so I changed it to &&. It tried throwing in negative numbers in the tests
Loading more items...