Iterator Practice Quiz

Practice Problem

public class LinkedList<E> implements List<E> {
  private LinkedNode<E> head;
  private int size;

   ...

  private class LinkedListIterator<E> implements Iterator<E> {
    private LinkedNode<E> next;
    ...
    public E next() {
      // your code here.
    }
    ...
  }
}

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.