Skip to content

Commit c4e7d16

Browse files
author
Krishnan M
committed
updated
1 parent e058065 commit c4e7d16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/com/thealgorithms/tree/BinarySearchTree.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,8 @@ private void display(Node node, String details) {
232232
if (node == null) {
233233
return;
234234
}
235-
236235
System.out.println(details + node.value);
237236
display(node.left, "Left child of " + node.value + ": ");
238237
display(node.right, "Right child of " + node.value + ": ");
239238
}
240-
}
239+
}

src/test/java/com/thealgorithms/tree/BinarySearchTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,4 @@ void testPopulateSorted() {
163163
sortedBST.populateSorted(sortedValues);
164164
assertTrue(sortedBST.balanced(), "BST populated with sorted array should be balanced");
165165
}
166-
}
166+
}

0 commit comments

Comments
 (0)