Solved

To Remove a Node X with Index 1 or Greater

Question 17

Multiple Choice

To remove a node X with index 1 or greater from a linked list,


A) set a reference pred to the predecessor of the node you want to remove,and set the successor of pred to the successor of X
B) decrease the index of the node to be removed by 1,and then set its reference to null
C) first store the value of the element in X in a safe place,then set its reference to null
D) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions