Closed
Description
Description of the problem
As of now, the correctness of operations on a binary tree is determined by verifying the str(tree)
with the expected string. This makes it quite difficult to check the tests. Instead of using, str(tree)
, in-order and pre-order should be checked since, using both these traversals a binary tree can be uniquely constructed.
Example of the problem
See the tests of RedBlackTree.
References/Other comments
[1] #293