Skip to content

Instantly share code, notes, and snippets.

@rpcarney4
rpcarney4 / LinkedSet
Last active October 20, 2018 03:15
Auburn University-COMP 2210 LinkedSet Assignment.
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* Provides an implementation of the Set interface.
* A doubly-linked list is used as the underlying data structure.
* Although not required by the interface, this linked list is
* maintained in ascending natural order. In those methods that
* take a LinkedSet as a parameter, this order is used to increase
* efficiency.