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.
Instructions say numbers shouldn't be negative or zero. So, if you had 2,4,-1 and the if statement isn't there to for int >=0 how does this solution account for it?
So it's actually an intersting solution. Instead of creating an alphabet array as I did, he just used the ASCII table (every letter and character you can type pretty much is on this table) to filter out the codes that are relevant to the alphabet. Hope this helps.
On another note, has anyone solved this kata using the regex exec function instead of match and could link to their solution? Due to their similarity (with the lastIndex difference), I'm curious to see a successful implementation (for some reason I couldn't get it to work). Thanks! :)
why the x&& and o&&? Is there something i'm not aware of or should x.length and o.length be sufficient?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Going to go out on a limb thinking it's more efficient to have one method that allows you to combine values any way you like vs the structure of the various operations.