Guest User

Untitled

a guest
Oct 17th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. 1) run iterator 'a' to kth element
  2. 2) start iterator 'b' from head
  3. 3) proceed iterator 'a' to the end of list, stepping 'b' each time when you step 'a'
  4. end) 'a' arrives to last element, 'b' arrives to 'kth to last' at the same time.
Add Comment
Please, Sign In to add comment