odd_even_list】的更多相关文章

public class Solution { public ListNode OddEvenList(ListNode head) { if(head == null || head.next == null || head.next.next == null) return head; //考虑特殊情况,0.1.2个点,直接返回 ListNode res = head,a = head; //a遍历奇数点 res记录奇数最开始的点 ListNode bb=head.next,b = head…