Question: Write a function void backwardsNewList(node * head, node *& secondHead) to recursively make a reverse copy of the source singly linked list with head where
Write a function void backwardsNewList(node * head, node *& secondHead) to recursively make a reverse copy of the source singly linked list with head where secondHead is the head of the destination list. Must be in c++.
struct node { int data; node * next; };
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
