employer cover photo
employer logo

Domanda di colloquio di Sterling

Implement a function that removes a node with value x from doubly linked list.

Risposta di colloquio

Anonimo

5 giu 2019

The interviewer was encouraging to ask questions. I assumed the type of x was integer, but he mentioned it was String. I asked if the list could have duplicate entries, to which he said it could. In that case, he modified the question to removing the last occurrence of x in the list. He was encouraging to test different scenarios.