bintree...

This commit is contained in:
Aditya 2022-09-17 10:04:51 +05:30
parent e326c0cd1a
commit 930693baf6

View file

@ -0,0 +1,17 @@
/** ADT for binary tree nodes */
public interface BinNode<E> {
/** Get and set the element value */
public E element();
public void setElement(E v);
/** @return The left child */
public BinNode<E> left();
/** @return The right child */
public BinNode<E> right();
/** @return True if a leaf node, false otherwise */
public boolean isLeaf();
}