Unnamed
public java v1 · immutablepublic Comparable findSmallest ( BinaryTreeNode T) { //Nothing in the tree if (T.getData() == null){ return null; } //Only one node if (T.getLeft() == null && T.getRight() == null){ return T.getData(); } //if the left node is smaller, run the procedure on the new node, return current node once this doesn't hold if (T.getLeft() < T.getData()) { return findSmallest(T.getLeft()); } return T.getData();}