Yahoo interview question

remove the node from the single linked list having only pointer to that node

Interview Answers

Anonymous

Jun 27, 2009

requires some tricks (replace the entire node with the next one)

2

Anonymous

Nov 3, 2009

replace the pointer to that node with the address of the node this one points to.