Give code and the drawing to make clear what you are doing.
Here is a diagram of a three node linked list with a head pointer and a node to be inserted. Show all steps necessary to delete the second node, pointed to by
discard_me. You may assume the necessary search for the node to be deleted is
done and the pointer discard_me is already positioned.
You are to make clear the sequence of steps by either numbering the steps, or by
making several copies of this drawing, with one change per drawing, numbered to show the sequence. You may assume that a search routine taking a head pointer and data arguments has been defined for you.
```
NodePtr discard_me;
NodePtr temp_ptr;
discard_me = search( head, discard_data);
head->link = discard_me->link;
delete discard_me
```
You might also like to view...
By default, worksheets are names as ________
A) worksheetA, worksheetB, worksheetC B) worksheet1, worksheet2, worksheet3 C) sheet1, sheet2, sheet3 D) spreadsheet1, spreadsheet2, spreadsheet3
Most current operating systems support the implementation of threads, or ____, which have become part of numerous application packages.
A. parallel processes B. lightweight processes C. heavyweight processes D. semaphores