回文链表或者归并排序链表 回文链表不需要断开 归并排序需要断开
public ListNdoe middleNode(ListNode head){
ListNode pre = head;
ListNode slow = head;
ListNode fast = head;
while(fast != null && fast.next != null){
slow = slow.next;
fast = fast.next.next;
}
pre.next = null;
return slow;
}