Comp 388 lab 3 - linked lists

Goals

Overview

Consider my simple linked list demo, available at linkedstrlist.cs. You are to add the following methods to the class:

All the methods (except maybe the first) are O(n): you have to step through the list to position n. If you add a count_ field, then size() is O(1); otherwise it too is O(n).

Option: do the above to the LinkedTList class, which uses a generic type T instead of a fixed type string. The file is linkedTlist.cs. When compiling, ignore this warning:
Type parameter `T' has the same name as the type parameter from outer type `LinkedTList<T>'

To submit your project, create a zipfile and put it on Sakai or email it to me at pld@cs.luc.edu.