3 ms·
Yeah, I suppose so. I only asked because reversing a singly-linked list just seems like a PitA.
by nolepointer 9y ago
Yeah, I suppose so. I only asked because reversing a singly-linked list just seems like a PitA.
- duskwuff 9y agoReversing 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.