Note – Do the stack tasks first!
basing the code on the stack you have already coded, try and create a queue class. You will need to make use of the Node class.
The queue class will have the following attributes –
Front – Points to the front of the queue
rear – points to the end of the queue.
It will have the following methods –
add(value) – Adds an item to the rear of the queue.
remove(value)
You need to log in or create an account to submit code!