摘要: class Solution { public ListNode reverseList(ListNode head) { ListNode cur = head, pre = null; while(cur != null) { ListNode tmp = cur.next; // 暂存后继节点 阅读全文
posted @ 2022-03-15 23:00 大雄的脑袋 阅读(15) 评论(0) 推荐(0) 编辑