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.
Yes Of Course it can simply work without classes. Just write the function outside of the class code block literal and invoke the function like this: findSmallestInt([23, 45, 67])
This comment is hidden because it contains spoiler information about the solution
same here lol
This comment is hidden because it contains spoiler information about the solution
Looking cool :)
This comment is hidden because it contains spoiler information about the solution
yo i did this too
yo i did this too
good job
This comment is hidden because it contains spoiler information about the solution
Thank you for this - looks like the JavaScript core engine has a hard-coded argument limit of 65,536(https://bugs.webkit.org/show_bug.cgi?id=80797)
This comment is hidden because it contains spoiler information about the solution
For the people who care about time complexity, this elegant solution is still of O(n).
The spread operator still loops through every element until exausted.
So even if you did a for loop (like I did), it is still O(n).
Oh, i learned something today! Thanks for this clever sollution!
It sure is clean, but only if you and others understand what its supposed to do! If a for loop is clearer to everyone, thats the way to go with the solution!
Loading more items...