Page 1 of 1

Step 1 Doubly Linked List Class From the lecture material create a doubly linked list class. This class should be generi

Posted: Sun Jul 03, 2022 11:22 am
by answerhappygod
Step 1 Doubly Linked List Class From The Lecture Material Create A Doubly Linked List Class This Class Should Be Generi 1
Step 1 Doubly Linked List Class From The Lecture Material Create A Doubly Linked List Class This Class Should Be Generi 1 (29.04 KiB) Viewed 19 times
Step 1 Doubly Linked List Class From the lecture material create a doubly linked list class. This class should be generic so that it will operate on any given type. Your class should have the ability to add to the front, add to the rear, insert (you can insert before or after a node), delete, and find. Your list class should also implement functionality that will allow you traverse the list forward and backward. As for the naming conventions and interface into the list I will leave all of that up to you. Step 2 Stack and Queue Using the linked list class you created in Step 1 create stack and queue classes. I will leave it up to you as to whether to use composition or inheritance but whatever way you choose to go you should be able to explain why you chose the relationship type you did. The stack class should have the following interface • push . pop . peek The queue should have the following interface enqueue . dequeue . peek Again I will leave it up to you as to the parameters to the functions and the return type. As usual please have good reasoning for why you have been doing things.