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.
ok it's been corrected.
can't test in the python version, there is a typo in the test:
impo.assert_equals(tree_by_levels(None), [])
^^^^
test.assert_equals(tree_by_levels(Node(Node(None, Node(None, None, 4), 2), Node(Node(None, None, 5), Node(None, None, 6), 3), 1)), [1, 2, 3, 4, 5, 6])
my brain is tweaking
can't you just simplify the Description ?
The way this task is described is not straightforward. First item in pairs is for buying, second is for selling.
why on earth would anyone add spoiler flags on an attempt to make the description make any sense
Very difficult to understand the task without the examples in the tests