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.
Amazing!!!
Although the test wasnt made to catch exceptions, it would be nice to implement one to catch errors if the input contains something other than integers and a lenght different than 10.
I believe the terms for the practices used in the solution are List Comprehension and List Slicing.
I'm pretty new to python and would like to better understand the best practices for this solution.
This is the best response readability-wise
Totally unreadable.
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)"?
Nice
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
but there isnt anything about this in the task, same as if it isnt a number but a letter or symbol. Just do what is asked for nothing more nothing less
You and I both. So much to learn. I love coming and seeing what the other's solutions are, it's almost like having hundreds of mentors seeing the different thought processes.
Loading more items...