Question: Write a recursive function that inserts a new node at the middle of a linked list pointed at by pointer head. If there is
Write a recursive function that inserts a new node at the middle of a linked list pointed at by pointer head. If there is an odd number of nodes, you need to insert the new node before the element at the middle. Take into consideration all special cases. The declaration of the node is: typedef struct Node { Int data; Node* next; }Node;
Step by Step Solution
There are 3 Steps involved in it
The content in the image provides the task of writing a recursive function to insert a new node at the middle of a linked list The node structure is d... View full answer
Get step-by-step solutions from verified subject matter experts
