Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- current = head
- while current.next != head and current.next.next != head:
- current.next = current.next.next
- current = current.next
- if current.next.next == head
- current.next = head
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement