Skip to content

Linked List Cycle

Logic

elements

  • head
  • list
  • pos: index of the node that tail's next pointer is connected to

Constrain

  • cycle code by next pointer still in list