Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6dcce9f

Browse files
committed
Modified Data Structures/Trees folder .java file name and class name
1 parentdcf7f8f commit6dcce9f

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎Data Structures/Trees/AVLTree.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
publicclassAVLtree {
1+
publicclassAVLTree {
22

33
privateNoderoot;
44

@@ -200,7 +200,7 @@ private void reheight(Node node){
200200
}
201201

202202
publicstaticvoidmain(String[]args) {
203-
AVLtreetree =newAVLtree();
203+
AVLTreetree =newAVLTree();
204204

205205
System.out.println("Inserting values 1 to 10");
206206
for (inti =1;i <10;i++)

‎Data Structures/Trees/LevelOrderTraversal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ public Node(int item)
99
}
1010
}
1111

12-
classBinaryTree
12+
publicclassLevelOrderTraversal
1313
{
1414
// Root of the Binary Tree
1515
Noderoot;
1616

17-
publicBinaryTree()
17+
publicLevelOrderTraversal()
1818
{
1919
root =null;
2020
}
@@ -65,7 +65,7 @@ else if (level > 1)
6565
/* Driver program to test above functions */
6666
publicstaticvoidmain(Stringargs[])
6767
{
68-
BinaryTreetree =newBinaryTree();
68+
LevelOrderTraversaltree =newLevelOrderTraversal();
6969
tree.root=newNode(1);
7070
tree.root.left=newNode(2);
7171
tree.root.right=newNode(3);

‎Data Structures/Trees/LevelOrderTraversalQueue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public Node(int item) {
1414
}
1515

1616
/* Class to print Level Order Traversal */
17-
classBinaryTree {
17+
publicclassLevelOrderTraversalQueue {
1818

1919
Noderoot;
2020

@@ -49,7 +49,7 @@ public static void main(String args[])
4949
{
5050
/* creating a binary tree and entering
5151
the nodes */
52-
BinaryTreetree_level =newBinaryTree();
52+
LevelOrderTraversalQueuetree_level =newLevelOrderTraversalQueue();
5353
tree_level.root =newNode(1);
5454
tree_level.root.left =newNode(2);
5555
tree_level.root.right =newNode(3);

‎Data Structures/Trees/PrintTopViewofTree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void printTopView()
7878
}
7979

8080
// Driver class to test above methods
81-
publicclassMain
81+
publicclassPrintTopViewofTree
8282
{
8383
publicstaticvoidmain(String[]args)
8484
{

‎Data Structures/Trees/ValidBSTOrNot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public Node(int item)
1010
}
1111
}
1212

13-
publicclassBinaryTree
13+
publicclassValidBSTOrNot
1414
{
1515
//Root of the Binary Tree
1616
Noderoot;
@@ -47,7 +47,7 @@ boolean isBSTUtil(Node node, int min, int max)
4747
/* Driver program to test above functions */
4848
publicstaticvoidmain(Stringargs[])
4949
{
50-
BinaryTreetree =newBinaryTree();
50+
ValidBSTOrNottree =newValidBSTOrNot();
5151
tree.root =newNode(4);
5252
tree.root.left =newNode(2);
5353
tree.root.right =newNode(5);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp