反转单向链表

以Java语言为主,实现如下: public class Node { public int value; public Node next; public Node(int value) { this.value = value; } public Node reverseList(Node head) { Node …