视频讲解 B站视频合集:https://www.bilibili.com/video/BV1ua41197Dh 代码部分 解法一 public ListNode reverseList(ListNode head) { Stack<ListNode> stack = new Stack<>(); //把链表节点全部摘掉放到栈中 while (head != null) { stack.push(head); head = head.next; ...