JAVA-1295: Fix node.left -> node.right
This commit is contained in:
parent
a057b3af44
commit
676738e7cb
|
@ -142,7 +142,7 @@ public class BinaryTree {
|
|||
nodes.add(node.left);
|
||||
}
|
||||
|
||||
if (node.left != null) {
|
||||
if (node.right != null) {
|
||||
nodes.add(node.right);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue