Question: Write a function Print(Temp) that prints the elements of a circular linked list in order. The parameter Temp points the first element of the list.
Write a function Print(Temp) that prints the elements of a circular linked list in order. The parameter Temp points the first element of the list. For instance, for the circular linked list X Y Z where the first element X is pointed by Temp, calling Print(Temp) should print X Y Z. You may assume that the list is not empty and each node is of CirListNode type.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
