Question: Design a C++ function int getSize(Node *head). The function receives head as input parameter and returns the number of nodes in the linked list.
Design a C++ function int getSize(Node *head). The function receives head as input parameter and returns the number of nodes in the linked list.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
