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.
Beautiful, readable, and efficient. For me, this is the best answer!
This comment is hidden because it contains spoiler information about the solution
Super readable. This is really nice.
I love this solution - super clean, and really readable. Nice work!
... is the spread operator. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
From what I've read, using the spread syntax ([...s]) or Array.from() will offer unicode compliance, making this code less buggy.
Oh nevermind - because you get overflow when trying to add two really big ints together...just got it :)
Why doesn't this work if you make the longone and longtwo variables ints instead of long?