Binary Tree Traversal Practice Quiz

Practice Problem

public class BinaryTree<E> {
  private BinaryNode<E> root;

  public String toString() {
   // your code
  }

  private class BinaryNode<E> {
    private E data;
    private BinaryNode<E> left;
    private BinaryNode<E> right;
  }
}

Time Remaining:

You can restart the timer by reloading the page.

Try to complete the problem in 15 minutes.

If you cannot complete the program in 15 minutes, you can watch me solve the problem in a text editor.