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.
Doh! Why didn't I think of that!
and I thought mine was clever..
I'm still learning, but I assume this would be more expensive since we're creating a copy of the array using the spread syntax, right? Using the every method, would be O(n) at worst. While if we use this spread syntax itself would already be O(n) on top of another O(n) from the Math.max
Love this one!
Such a cool!
Thank you. I just needed fresh head to understand it
This comment is hidden because it contains spoiler information about the solution
Not best practice:
No need to iterate through the whole array
No need to calculate the max
Can return on the first number greater than the limit
wow one line that's much easier
I thought I wrote it cool. It's even cooler here. )
clever yeah