Deallocating all in Circular LL
•
Yes, we have one node left...oops!
–
delete head;
–
head = NULL;
•
Compare this approach with the one
before, which is better and why?
•
Also realize...that with both approaches
–
we had 3 pointers (head, current, temp)
–
in addition, the stopping condition requires more work
than just checking for null!