+ 5
You can maybe store the Adress of the first node, then you iterate on the list. If a pointer points to the first element, so to the Adress of the first node, you break the loop and you know it is circular.
10th Jun 2019, 8:36 AM
Théophile
Théophile - avatar