Question
Use the code given to create the following function: 1. Add a function that Insert in the Linkedlist. 2. Modify Add a function that will
Use the code given to create the following function:
1. Add a function that Insert in the Linkedlist.
2. Modify Add a function that will enable you to Enter more items in insert function using (Y/N):
E.g.
Enter your Choice: 1
Enter number to add to list: 12
Enter more(y/n): y
Enter number to add to list: 13
Enter more(y/n): n
3. Add a function ( Count() ) that count total element added in Linkedlist
4. Sort the nodes in the linked list
5. Delete from front/head of list
6. Delete from lasVtail of list
The following in the menu
Singly Linked List Menu:
1. Create or Append List
2. Insert in Beginning
3. Insert in Middle
4. Remove from the List (Head/Tail) H/T or you can write a separate function for it
5. Count Element in List
6. Show List of Elements
7. Exit
All the Singly Linked List operations are performed.
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