Question: Make with C language Make using a single or double linkedlist a program that does: 1. Displays the number of nodes 2. Displays the contents
Make with C language
Make using a single or double linkedlist a program that does: 1. Displays the number of nodes 2. Displays the contents of the linked list (if any) And it has a menu with functions: 1. popAll, Input String 2. Delete Char @Front 3. Delete Char @Back 4. Delete specific Char 5. Exit, PopAll
initial view :

Menu :
1. popAll, Input String

PopAll on the Linked List, then enter the string into the linked list char in ascending order (small to large)

2. delete Char @Front

Delete the first character from the Linked List
3. Delete Char @Back

Delete the last character from the linked list
4. Delete specific Char

Ask for the characters to be delete
Deletes all occurrences of the character: if the character is in the list more than 1x, the character is deleted all. Example: n in a-a-n-n-r-s-t

5. Exit, PopAll

Do a popAll and exit the program
num of nodes : 0 LL Char 1. popali, Input String 2. Delete Char @Front 3. Delete Char @Back 4. Delete specific Char 2. Exit, popall choice : choice : 1 Input String : nusantara num of nodes : 9 a-a-a-n-n-r-s-t-u num of nodes : 8 a-a-n-n-r-s-t-u num of nodes : 7 a-a-n-n-r-s-t choice : 4 Input Char to Delete : n 5 num of nodes : a-a-r-s-t 0. Exit, popAll Echoice : 0 num of nodes : 0 LL Char 1. popali, Input String 2. Delete Char @Front 3. Delete Char @Back 4. Delete specific Char 2. Exit, popall choice : choice : 1 Input String : nusantara num of nodes : 9 a-a-a-n-n-r-s-t-u num of nodes : 8 a-a-n-n-r-s-t-u num of nodes : 7 a-a-n-n-r-s-t choice : 4 Input Char to Delete : n 5 num of nodes : a-a-r-s-t 0. Exit, popAll Echoice : 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
