To remove the first node in a nonempty linked list,
A) move the successor reference in the head node one node forward:
head.next = head.next.next;
B) set a reference pred to the predecessor of the node you want to remove, and set the successor of pred to the successor of the head
C) move the head reference one node forward:
head = head.next;
D) delete the node by setting the head reference to null:
head = null;
C) move the head reference one node forward:
head = head.next;
Computer Science & Information Technology
You might also like to view...
A report provides a professional, printed format of information contained in a database
Indicate whether the statement is true or false
Computer Science & Information Technology
Which of the following log security levels would indicate the most immediate action would be needed, such as in an emergency?
A) 0 B) 1 C) 6 D) 7
Computer Science & Information Technology