employer cover photo
employer logo
employer logo

Amazon Web Services

Part of Amazon

Is this your company?

Amazon Web Services Interview Question

Given a one-directional linked list and a ptr to a node erase the node.

Interview Answer

Anonymous

Apr 16, 2025

the problem is you cant connect the prev node to next, so you got to traverse the remainder of the linked list and copy each node to the prev (kind of a trick question as you dont actualy erase the node)