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.
This comment is hidden because it contains spoiler information about the solution
They are not the same. "value" variable is still an integer that was passed to a function. It wasn't changed. "arr" variable is an array of digits (as strings) that was created after you applied .toString() and .split() methods to "value".
"value" is a number type. Numbers do not have length property.
Hope this helps :)
He needs to assign ("a" === array) to compare between the current e (element) and the next element a[i+1] so he can return any of the three options.
This comment is hidden because it contains spoiler information about the solution
I understand that "a" in the filter iterations is the input array. Is there a benefit to using "a" in the filter iterations over "array"?
Thanks for the chuckle
This comment is hidden because it contains spoiler information about the solution
Well, your code being too slow is not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Bravo on the logic