Linked Lists Exercises |
< Previous Next > |
struct Node{ int item; Node* next; }; Node* head;Working in groups of 2-3 people, draw an example for your operation (see below). Next, write code for your operation. Make sure that you address each scenario above.
if( MNumber % 10 <= 3 ){ Insert a number into the linked list }else if( MNumber % 10 <= 6 ){ Print out the contents of every item in a linked list }else{ Look for 7 in the list and delete, if present }
Last Modified: