Pregunta de entrevista de Goldman Sachs

Write the code in c++ to remove a node in a singly linked list