Want a Free Job Posting?

Buy a job posting today and the second one is on us. For a limited time only. Act Now.

Interview Question

Interview(Student Candidate) New York, NY

How would you remove a node from a list with only a pointer

  to the node itself?

Interview Answer

1 Answer


Copy the value of the next node in this node and have it point to next->next, in effect deleting the "next" node instead.

Interview Candidate on Nov 11, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.