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