mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-12-19 07:00:35 +08:00
Co-authored-by: Amit Kumar <akumar@indeed.com>
This commit is contained in:
@@ -22,7 +22,7 @@ public class BinaryTree {
|
||||
*
|
||||
* @author Unknown
|
||||
*/
|
||||
class Node {
|
||||
static class Node {
|
||||
/** Data for the node */
|
||||
public int data;
|
||||
/** The Node to the left of this one */
|
||||
@@ -53,6 +53,11 @@ public class BinaryTree {
|
||||
root = null;
|
||||
}
|
||||
|
||||
/** Parameterized Constructor */
|
||||
public BinaryTree(Node root) {
|
||||
this.root = root;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to find a Node with a certain value
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user