Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Function 1 - void printListReverse ( Node * head ) Create a function which displays a single linked list in reverser order. It is important
Function void printListReverseNode head
Create a function which displays a single linked list in reverser order. It is important to understand
that lm not asking you to reverse the nodes of the single linked list. Im only asking you to print
the data values in reverse order.
Ei if the list is NULL
You function should print NULL"
Function void reverseLinkedlist&head
Create a function to reverse the nodes of a single linked list. Call the function printListNode
head to display the list in reverse order.
Ei if the list is NULL
After creating and calling your function, printList will display
Function findMiddleNodeNode head
Find and return the middle node for a LinkedList with an odd number of nodes. If the LinkedList is
even, return the highest of the two middle nodes.
Testcase:
List:
Output: "middle noes is
List:
Output: middle noes is
List:
Output: middle noes is
Function deleteMiddleNodeNode head
Find and delete the middle node of a Linkedlist. Use the printList function to print the list after
removing middle node.
Testcase:
List:
Output: NULL
List:
Output: NULL
List:
Output: NULL
Write in C and show code please
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