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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
how does checking the arrays truthy value not meet the condition if the arr has a length greater than 1?
This comment is hidden because it contains spoiler information about the solution
I CAN'T BELIEVE I MISSED THIS
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
✓ ✓ ✓ ✓
Correct: "No floats or non-positive integers will be passed."
Correct too: "... given an array of minimum 4 positive integers"
This assumes all numbers are positive integers, and that the provided list of numbers has two items.
Nice these one liner solutions always do the trick
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
sorted(numbers) is an O(n log n) operation
So this algorithm is slower than others that do not sort
cringe. learn how to code, not how to use a language
Loading more items...