摘要: 输入一个链表,反转链表后,输出新链表的表头。 法1:递归 public class Solution { public ListNode ReverseList(ListNode head) { if(head == null||head.next == null) return head; Lis 阅读全文
posted @ 2020-06-01 23:20 嫩西瓜 阅读(126) 评论(0) 推荐(0)