Question: Write a member function PrintReverse that prints the elements on a list in reverse order. For instance, for the list X Y Z, list.PrintReverse() would
Write a member function PrintReverse that prints the elements on a list in reverse order. For instance, for the list X Y Z, list.PrintReverse() would output Z Y X. The list is implemented as a circular list, with listData pointing to the first element in the list. You may assume that the list is not empty.
Step by Step Solution
3.36 Rating (162 Votes )
There are 3 Steps involved in it
Printing a circular linked list in reverse order is a little tricky Because its a circular list we cant simply start at the last node and follow previ... View full answer
Get step-by-step solutions from verified subject matter experts
