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, but my point was that this isn't best practice.. just clever.
the description says the input will be all positive integers
Good, but if they were to pass negative numbers as an input and it would fail..
LOL
very stupid, but effective and make me enjoy
When I was trying to use this method it said me that it's wrong. WTF? 🤬
More concise than #1! Way to go!
agreed.
bro at least use for loops and not .forEach()
Question asks to solve when "given an array of minimum 4 POSITIVE integers"
it does not solve if there are negative or non-integer numbers in the array
why do we need to subtract a-b i dont understand its meaning or what it does
My own opinion - Its the best solution. Ever.
why u even do this?
Stupid but effective
Loading more items...