Merge pull request #9098 from kwoyke/JAVA-1295

JAVA-1295: Fix node.left -> node.right
This commit is contained in:
Loredana Crusoveanu 2020-04-14 19:15:48 +03:00 committed by GitHub
commit f661797acb
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);
}
}