Skip to content

Commit 2364ed7

Browse files
author
Krishnan M
committed
updated pretty Display and added BSTRecursiveGenericTest.java
1 parent d0811cb commit 2364ed7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/thealgorithms/datastructures/trees/BSTRecursiveGeneric.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ public void prettyDisplay() {
3737
}
3838

3939
private void prettyDisplay(Node<T> node, int level) {
40-
if(node == null){
40+
if(node == null) {
4141
return;
4242
}
4343
prettyDisplay(node.right, level + 1);
4444
if(level != 0) {
45-
for(int i = 0; i < level - 1; i++){
45+
for(int i = 0; i < level - 1; i++) {
4646
System.out.print("|\t");
4747
}
4848
System.out.println("|---->" + node.data);

0 commit comments

Comments
 (0)