Question
Write a menu driven program for queue implemented with linked list with these options 1. Insert 2. Delete 3. Display. ---Insert function must allow you
Write a menu driven program for queue implemented with linked list with these options 1. Insert 2. Delete 3. Display. ---Insert function must allow you to read and add a node at the end of the queue with following parts- data, level and link (pointer to next node). You can enter value of level from 1-10. ---Deletion function must delete a node with lowest level. It means that in the queue if you have five nodes with levels 1,3,7,2 and 9, the delete function must first delete node with level =1, then with level=2, then with level=3 and so on. ---Display Function must display all the nodes values with their level values.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started