CSCI 2300 Data Structures and Algorithms Spring 2000

Lab 4
SOLUTION

Solution files can be found in courses/spring00/dsa/labs/lab3/solution/.

2. current is being used to keep track of the latest list node after each operation.

3. If you don't find something on the list make current point to the last list node, i.e., head->prev.

7. If the argument to the copy constructor is call-by-value, then you would get an infinite recursion, since the compiler has to create a temporary variable for the argument by calling the copy constructor!


Last updated: 15 Sep 1998 by zaki@cs.rpi.edu