diff --git a/BST.java b/BST.java index 544e77d..c8cc096 100644 --- a/BST.java +++ b/BST.java @@ -7,7 +7,7 @@ private class Node { Node right; } - private Node root; + private Node root=null; public BSTT(int arr[]) { this.root = construct(arr, 0, arr.length - 1);