Define a class modeling a Queue of Objects implemented as a singly-linked list with the following methods:
Fantastic news! We've Found the answer you've been seeking!
Question:
Define a class modeling a Queue of Objects implemented as a singly-linked list
with the following methods:
a constructor to creat.e an empty Queue,
a method to insert a given Object into the Queue
a method to delete an Object from the Queue
a method to test for an empty Queue
a toString method
To support this implementation, also define a second class for a Link.
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: