Question: Implement a recursive function deleteList, that takes pointer to the head of a singly linked list and deletes the whole list. struct Node {
Implement a recursive function deleteList, that takes pointer to the head of a singly linked list and deletes the whole list. struct Node { int val; Node* next; }; void deleteList (Node* head) { ~ Activate Go to Settin
Step by Step Solution
There are 3 Steps involved in it
The task is to implement a recursive function deleteList that deletes an entire singly linked list g... View full answer
Get step-by-step solutions from verified subject matter experts
