Smarsh Interview Question

Given a pointer to one Node, how will you delete that Node (No head pointer given)

Interview Answer

Anonymous

Jun 22, 2019

Idea is to copy the next node data to this node and move the next pointer to next.next