Fix printTreepre (#3218)
This commit is contained in:
parent
3f69603440
commit
12a4e27213
@ -39,8 +39,8 @@ public class RedBlackBST {
|
||||
}
|
||||
System.out.print(
|
||||
((node.color == R) ? " R " : " B ") + "Key: " + node.key + " Parent: " + node.p.key + "\n");
|
||||
printTree(node.left);
|
||||
printTree(node.right);
|
||||
printTreepre(node.left);
|
||||
printTreepre(node.right);
|
||||
}
|
||||
|
||||
private Node findNode(Node findNode, Node node) {
|
||||
|
Loading…
Reference in New Issue
Block a user