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.
I believe this is literally what the Kata's instructions are asking for
Nice!
What unexpected behaviour are you talking about here? The ECMA specification says that the radix will default to 10 unless the string starts with "0x", which can't happen here as all non-numeric characters are removed.
https://262.ecma-international.org/12.0/#sec-parseint-string-radix
I am, I look for it!
Of course, as long as you are ok with your code having unexpected behavior :D
I should do what I fancy to.
You should always provide radix (10 in this case) as the second argument to parseInt.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseInt
Composable streaming folds
@GiacomoSorbi Make sure to check this question for outdated parts.
I expected to find you here, senpai :D
Thanks for the link, didn't know about the online version of RWH with comments: bookmarked!
And that's how it was done in my days! The whole life was a test, and you were marked every second!
Nah just kidding. The solution is fine for this kata, but it's something one should keep in mind when working with large lists.
For the length of 10^10, the frequency of a student getting marks would be some hundred hertz.
nice approach!