Draw pictures of the list names after each line of the following code. Show the head pointer of the list, and the values and next pointers of every node. Draw pointers as arrows, and the null pointer as a slash or X. You may assume the list is singly-linked. Draw linked lists.
- list names;
- names.push_front("Jerry");
- names.push_front("Tom");
- names.push_back("Seinfeld");
- names.pop_front();
- names.pop_front();