Question: Convert this pseudo code into c++ code. Follow the steps in pseudo code EXACTLY. Linked list algorithms in Pseudo code Class Linked List Data: head-
Linked list algorithms in Pseudo code Class Linked List Data: head- Pointer to Node that will hold the head pointer of the list Len: number of Nodes in the linked list Default constructor Linked list-will be called when linked list is created (Usually done in automatic memory) head- NULL len 0 Member function insert node (data) input: data to be inserted into linked list (stored in Node) output: None returns: Nothing ptr = allocate a new Node (Put data in node) prev= NULL curr head while (curr != NULL and curr->data
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
