From 6dcce9f3e070586fb266c410c5bf7516ed019dd5 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 16 Dec 2017 19:04:10 +0900 Subject: [PATCH] Modified Data Structures/Trees folder .java file name and class name --- Data Structures/Trees/AVLTree.java | 4 ++-- Data Structures/Trees/LevelOrderTraversal.java | 6 +++--- Data Structures/Trees/LevelOrderTraversalQueue.java | 4 ++-- Data Structures/Trees/PrintTopViewofTree.java | 2 +- Data Structures/Trees/ValidBSTOrNot.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Data Structures/Trees/AVLTree.java b/Data Structures/Trees/AVLTree.java index a3bde289..4bcf402d 100644 --- a/Data Structures/Trees/AVLTree.java +++ b/Data Structures/Trees/AVLTree.java @@ -1,4 +1,4 @@ -public class AVLtree { +public class AVLTree { private Node root; @@ -200,7 +200,7 @@ public class AVLtree { } public static void main(String[] args) { - AVLtree tree = new AVLtree(); + AVLTree tree = new AVLTree(); System.out.println("Inserting values 1 to 10"); for (int i = 1; i < 10; i++) diff --git a/Data Structures/Trees/LevelOrderTraversal.java b/Data Structures/Trees/LevelOrderTraversal.java index 845ab376..8cb304f1 100644 --- a/Data Structures/Trees/LevelOrderTraversal.java +++ b/Data Structures/Trees/LevelOrderTraversal.java @@ -9,12 +9,12 @@ class Node } } -class BinaryTree +public class LevelOrderTraversal { // Root of the Binary Tree Node root; - public BinaryTree() + public LevelOrderTraversal() { root = null; } @@ -65,7 +65,7 @@ class BinaryTree /* Driver program to test above functions */ public static void main(String args[]) { - BinaryTree tree = new BinaryTree(); + LevelOrderTraversal tree = new LevelOrderTraversal(); tree.root= new Node(1); tree.root.left= new Node(2); tree.root.right= new Node(3); diff --git a/Data Structures/Trees/LevelOrderTraversalQueue.java b/Data Structures/Trees/LevelOrderTraversalQueue.java index 4f263c95..ce7ad745 100644 --- a/Data Structures/Trees/LevelOrderTraversalQueue.java +++ b/Data Structures/Trees/LevelOrderTraversalQueue.java @@ -14,7 +14,7 @@ class Node { } /* Class to print Level Order Traversal */ -class BinaryTree { +public class LevelOrderTraversalQueue { Node root; @@ -49,7 +49,7 @@ class BinaryTree { { /* creating a binary tree and entering the nodes */ - BinaryTree tree_level = new BinaryTree(); + LevelOrderTraversalQueue tree_level = new LevelOrderTraversalQueue(); tree_level.root = new Node(1); tree_level.root.left = new Node(2); tree_level.root.right = new Node(3); diff --git a/Data Structures/Trees/PrintTopViewofTree.java b/Data Structures/Trees/PrintTopViewofTree.java index a429f8a6..27016ee2 100644 --- a/Data Structures/Trees/PrintTopViewofTree.java +++ b/Data Structures/Trees/PrintTopViewofTree.java @@ -78,7 +78,7 @@ class Tree } // Driver class to test above methods -public class Main +public class PrintTopViewofTree { public static void main(String[] args) { diff --git a/Data Structures/Trees/ValidBSTOrNot.java b/Data Structures/Trees/ValidBSTOrNot.java index 0f71a46a..4b2c08a1 100644 --- a/Data Structures/Trees/ValidBSTOrNot.java +++ b/Data Structures/Trees/ValidBSTOrNot.java @@ -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);