Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. current = head
  2. while current.next != head and current.next.next != head:
  3.     current.next = current.next.next
  4.     current = current.next
  5. if current.next.next == head
  6.     current.next = head
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement