JAVA-1295: Fix node.left -> node.right

This commit is contained in:
Krzysiek 2020-04-13 21:21:19 +02:00
parent a057b3af44
commit 676738e7cb
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ public class BinaryTree {
nodes.add(node.left);
}
if (node.left != null) {
if (node.right != null) {
nodes.add(node.right);
}
}