mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-21 02:53:15 +08:00
Modified Data Structures/Trees folder .java file name and class name
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user