3 ms·
Reversing a singly-linked list is actually easier: you take each element off the front of the old list and put it onto the front of the new list.
by duskwuff 9y ago
Reversing a singly-linked list is actually easier: you take each element off the front of the old list and put it onto the front of the new list.