Exercise 10.2.3

Implement a queue by using a singly linked list L. The operations ENQUEUE and DEQUEUE should still take $\O(1)$ time.

This is a bit trickier than the previous one, but still simple.