7.3 Suppose we added each of the following methods to the ArrayList class: public boolean addFirst (E element); public boolean addLast (E element); public E getFirst(); public E getLast(); public E removeFirst(); public E removeLast(); Estimate worstTime(n) for each method. | |
| View Solution | |
| << Back | Next >> |