Guest User

Untitled

a guest
Oct 23rd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ListNode fast = head;
  2. ListNode slow = head;
  3. while(fast.next != null && fast.next.next != null){
  4. fast = fast.next.next;
  5. slow = slow.next;
  6. }
  7. ListNode cur = slow.next; // the head of the second half.
Add Comment
Please, Sign In to add comment