CS 202 Fall 2013 > In-Class Challenge for Thursday, November 21, 2013 |
CS 202 Fall 2013
In-Class Challenge for Thursday, November 21, 2013
Our Goal
Write efficient code to reverse a linked list.
What to Do
- Rewrite program
uselist1.cpp
to reverse the constructed linked list efficiently. (Do you still have the print function from last time? Print out the resulting list).- You may modify file
list1.h
to make life easier. You may wish to add a set-function for the next-node pointer. Or just make the data members public, if you want.
- You may modify file
CS 202 Fall 2013: In-Class Challenge for Thursday, November 21, 2013 /
Updated: 21 Nov 2013 /
Glenn G. Chappell