Modified Data Structures/Trees folder .java file name and class name

This commit is contained in:
unknown
2017-12-16 19:04:10 +09:00
parent dcf7f8f657
commit 6dcce9f3e0
5 changed files with 10 additions and 10 deletions

View File

@ -10,7 +10,7 @@ class Node
}
}
public class BinaryTree
public class ValidBSTOrNot
{
//Root of the Binary Tree
Node root;
@ -47,7 +47,7 @@ public class BinaryTree
/* Driver program to test above functions */
public static void main(String args[])
{
BinaryTree tree = new BinaryTree();
ValidBSTOrNot tree = new ValidBSTOrNot();
tree.root = new Node(4);
tree.root.left = new Node(2);
tree.root.right = new Node(5);