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
Wow, is a genius
same
This solution is awesome, I feel like a simple amateur. Congrats!
Why did I not think of this...
It's a horrible idea to use try/except for completely preventable exceptions.
Use spoiler flag if your comment contains info about solution.
Cybersamurai, wdym? It works perfectly, I just tried it.
Please mark your post as having spoiler content next time. Your post was visible in the homepage discourse.
This comment is hidden because it contains spoiler information about the solution
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
Loading more items...