Week 4 – Optional Exercises

1. Design and implement a C# class Queue that implements a queue using a linked list. It should have the following members:

The + operator should append two queues, creating a new queue. You may implement it either destructively (taking the nodes from the two source queues) or non-destructively (copying all the nodes and leaving the two source queues intact), as you wish.

2. Write a C# class that implements a queue using a circular array.