employer cover photo

Beijing Rising Technology

Is this your company?

Beijing Rising Technology interview question

Given a node in a linked list, remove the next node which contains specific value.

Interview Answer

Anonymous

12 Oct 2012

This is a quite typical question, since what you need to do is to scan the list and find it. Also if the given node contains the specific value, we need to copy next node's value to this node and delete current node.