For data structures such as binary search trees, I compare nodes using a compareTo method I wrote. However, using the python operator module functions would be a more effective comparison method. In the binary search tree class is an example of the format. If anyone could implement it for all nodes that require it, it would be a great help.
For data structures such as binary search trees, I compare nodes using a compareTo method I wrote. However, using the python operator module functions would be a more effective comparison method. In the binary search tree class is an example of the format. If anyone could implement it for all nodes that require it, it would be a great help.