Reverse a list
Utilisateur anonyme
public void ReverseList(NodeList node) { if (node == null) { return ; } NodeList prev = null; ; NodeList current = node; NodeList next = current.next; while (next != null) { next = current.next; current.next = prev; prev = current; current = next; } }