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.
Very clever, thank you
Great solution!
Wow, so much clearer than my solution :'(
This comment is hidden because it contains spoiler information about the solution
Great Solution, thank you for an explanation!
Tests should be more descriptive, helping the learner to improve his solution.
In addition the usage of an empty Node is not explained well in description.
The test cases in Python translation for different empty matrices are completely unneccessary, there is no point in it.
Even more, they don't have any meaning from computing or the algebraic perspective and confuse the real purpose of transpose operation.
Wow!
Thank you for the explanation!
Thank you for the insight Alexander, it is really kind of you to do this tests.
I am only learning Python and I am sure that my solution wasn't the most efficient.
I am curious though why the straightforward usage of sorted method is faster than "merging" the arrays "by-the-book" in one pass...
Exactly what I thought, the upvoted solutions are terrible - very inefficient, using sorted on already sorted arrays.
This solution implements merging two arrays in the most efficient way - passing through each one of the input arrays only one time.
The fast solution would be using the sorted method provided by Python, but that would be ineffective since TimSort has NlogN run time and it is wastefull to run sorting algortihm again on two already sorted arrays.
@Blind4Basics:
Thank you for a great explanation!
In the Python Version the 1st sample test passes a list and not a tuple as described in the specifications.
Thank you for the Kata and the Python version, had to do some research on decorators and inheritance, but as an end result I feel I learned a lot today.
Used this useful resource:
https://www.thecodeship.com/patterns/guide-to-python-function-decorators/
Loading more items...