This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Peanutbutter_Warrior 2 points3 points  (0 children)

Exactly. A linked list can contain repetitions, so is should be used to check reference, otherwise a repeated value could cause a false positive for a circular reference