The type the data structures will hold is again T which in your case is just an integer with a different name, but potentially could be anything.
Each class has his own header file and source file, with the exclusion of Collection which is an abstract class:
collection.h
linked_list.h, linked_list.cpp
queue.h, queue.cpp
stack.h, stack.cpp
In the header files you will also find the documentation in javadoc format (that could be of help to figure out implementation details) for each of those elements.
You will implement the class methods in the file .cpp files.
DO NOT MODIFY .H FILES. They will be replaced during the grading process with the original ones I provided.
main.cpp implement the Main() function and plays with your code a bit. It is meant as aid for debugging and grading purpose. It will be replaced during the grading process with the original one I provided.
Figure 1: The hierarchy of classes. Collection is an abstract base class. LinkedList implements Collection. Queue and Stack inherit from LinkedList. see image.
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference
and should not be submitted as is. We are not held liable for any misuse of the solutions.
Please see the frequently asked questions page
for further questions and inquiries.
Kindly complete the form.
Please provide a valid email address and we will get back to you within 24 hours.
Payment is through PayPal, Buy me a Coffee
or Cryptocurrency.
We are a nonprofit organization however we need funds to keep this organization operating
and to be able to complete our research and development projects.