CSE 214 Computer Science II (Spring 2015)
RECITATION 4 – Linklist
Objective:
link: http://www3.cs.stonybrook.edu/~sael/teaching/cse214/rec/LinkedList.java
a) public T getMin(): returns the minimum value in the list.Print a message if the list is empty.
b) boolean find(T value): search the list for a valuec) void add(int index, T value): add the node after the node at the location, index. Assume index value is valid.
d) public T removeTail(): removes and returns the element value at the tail of the list. Print a message if the list is empty.
link: http://www3.cs.stonybrook.edu/~sael/teaching/cse214/rec/DoublyLinkedList.java