摘要: c. 反转链表 输入一个链表,反转链表后,输出新链表的表头。 思路 还是递归好想 class Solution { public ListNode ReverseList(ListNode head) { if (head==null || head.next==null) return head; 阅读全文
posted @ 2020-10-20 14:45 童年の波鞋 阅读(99) 评论(0) 推荐(0) 编辑