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.
Wow, is a genius
This solution is awesome, I feel like a simple amateur. Congrats!
Name of function 'sum_two_smallest_numbers' made me suspicious (what if there is negative in array, or less 2 elements), re-reading the description, ok ok :)
This solution is nlogn I believe, which is slower than just a single pass.
This comment is hidden because it contains spoiler information about the solution
why would that be inefficient? starting with python now and I used sorted() as well.
what do you mean by "O(n log n)"?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you can view their solution by clicking on 'View Solution'
can you solve it by o(n) please?
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
✓ ✓ ✓ ✓
Correct: "No floats or non-positive integers will be passed."
Correct too: "... given an array of minimum 4 positive integers"
Loading more items...