2014-03-20 - HW

posted Mar 20, 2014, 12:29 PM by Samuel Konstantinovich   [ updated Mar 20, 2014, 12:29 PM ]
Modify myLinkedList to work as we discussed in class.
1. Add a CONSTANT time length() operation. You will need a length instance variable.
2. Add a node that points to the 0th element. This head node doesn't count towards the length, and it cannot be accessed using get or set. It is purely used to make your code simpler.