Skip to content

Commit

Permalink
Merge pull request #1238 from santiago1617/master
Browse files Browse the repository at this point in the history
Updates
  • Loading branch information
fineanmol authored Oct 28, 2021
2 parents f9b2b8d + e5ee1c2 commit bee6c6a
Show file tree
Hide file tree
Showing 7 changed files with 1,469 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,8 @@
<a class="box-item" href="https://github.com/rocksaini"><span>Deepak Saini</span></a>
<a class="box-item" href="https://github.com/Vikrant804"><span>Vikrant Kamble</span></a>
<a class="box-item" href="https://github.com/asquaree"><span>Aakash Aggarwal</span></a>
<a class="box-item" href="https://github.com/shweta-tripathe"><span>shweta tripathi</span></a>
<a class="box-item" href="https://github.com/shweta-tripathe"><span>shweta tripathi</span></a>
<a class="box-item" href="https://github.com/santiago1617"><span>Santiago Tumbaco</span></a>



Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

public class BinaryNode<T> {

private T content;
private BinaryTree<T> left;
private BinaryTree<T> right;

public BinaryNode() {
this(null, null, null);
}

public BinaryNode(T content) {
this(content, null, null);
}

public BinaryNode(T content, BinaryTree<T> left, BinaryTree<T> right) {
this.content = content;
this.left = left;
this.right = right;
}

public T getContent() {
return content;
}

public void setContent(T content) {
this.content = content;
}

public BinaryTree<T> getLeft() {
return left;
}

public void setLeft(BinaryTree<T> left) {
this.left = left;
}

public BinaryTree<T> getRight() {
return right;
}

public void setRight(BinaryTree<T> right) {
this.right = right;
}

}
Loading

0 comments on commit bee6c6a

Please sign in to comment.