Insert at the end and delete a given node using only the head pointer
Filed under Aricent
The question
Write code to insert a node at the end of a linked list given only the head, handling all cases, and delete a given node, then do the deletion in a single scan.
No write-up yet. Related questions below have one.
Related Aricent questions
Collected from public candidate posts and coding forums. Updated Nov 2026.