mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-19 17:54:42 +08:00
Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong.
This commit is contained in:
@ -15,8 +15,8 @@ public class LevelOrderTraversal {
|
||||
// Root of the Binary Tree
|
||||
Node root;
|
||||
|
||||
public LevelOrderTraversal() {
|
||||
root = null;
|
||||
public LevelOrderTraversal( Node root) {
|
||||
this.root = root;
|
||||
}
|
||||
|
||||
/* function to print level order traversal of tree*/
|
||||
|
Reference in New Issue
Block a user