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.
The idea to use RegEx for this is broke my mind. If someone know how it possible, please tell me (seriously :)
There is three things that need your attention in this Kata. 1) You get a string 2) If you split this string, you also get strings but in array 3) JavaScript is a loosely typed and dynamic language but it has methods for pointing type of data (it is helpful with compare).
You can find tones of good information about JS in MDN Web Docs
Since all the number are separated by a single space, it should be easy to convert the string into an array/list, or you can just go through it char by char and make the array/list manually.
I don't use JavaScript very often (and if I do I always wash my hands afterwards), so I don't know the exact options you have available or what other things you will have to do to the list afterwards. The easiest is likely just to google something like "JavaScript convert string to array" or something.
I also don't want to spoile too much. Learning to google for answers and ideas is important nowadays.
I agree. That's how you learn best and fastest. Carrying out the (more or less) same task over and over until you can do it without thinking. They call it muscle memory, if I'm not mistaken.
There are plenty of those, though. Check out the filters to the left of your screen and actively search for Kata's that are marked 'Easiest' or 'Most completed', and start with those. You will quickly get the hang of it.
As far as I know, no one has ever used RegEx in this kata challenge. I don't really see why anyone would.
Any specific reason you ask?
Which programming language are you using?
Casting a string to a number.