Given the doubly linked list in the diagram below, give the code to delete the second node in the list with the number 31. Assume each entry in the list is a node of class Node with a public next and prev member variable.

```
Node *toDelete = head->next;
head->next->next->prev = head;
head->next = toDelete->next;
delete toDelete;
```

Computer Science & Information Technology

You might also like to view...

More than 72 hours of new video are uploaded to YouTube each ________

A) minute B) hour C) day D) week

Computer Science & Information Technology

Match the following Windows 7 features to their descriptions:

I. tag A. custom file property II. property B. screen display that contains icons and a taskbar III. icon C. identifier of a file IV. shortcut D. small picture on the desktop V. desktop E. point to a program or computer resource

Computer Science & Information Technology