Implementing two methods for reversing a singly-linked list: In-place and using a queue.