题目 实现反转链表和双向链表 代码实现 //反转单向链表 public Node reverseList(Node head) { Node pre = null; Node next = null; while (head != null) { next = head.next;