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...
Write a statement for the following:
Print 1.234 in a 9-digit field with preceding zeros.
When a program is installed, it is added to the ________ menu in Windows 7
A) Software B) All Programs C) Programs D) Installed Programs
A WPAN has a shorter transmission distance than a WLAN.
Answer the following statement true (T) or false (F)
For a 15-year loan paid monthly, which of the following would not be correct for the num_periods argument in the Pmt function?
A. 15 B. 15*12 C. 180 D. 12*15