Pergunta de entrevista da empresa X

Design a class to implement a queue which supports pop from head, push from end and delete at any position of the queue.

Respostas da entrevista

Sigiloso

17 de jan. de 2021

It's essential to demonstrate that you can really go deep... there are plenty of followup questions and (sometimes tangential) angles to explore. There's a lot of Software Engineer Intern experts who've worked at Twitter, who provide this sort of practice through mock interviews. There's a whole list of them curated on Prepfully. prepfully.com/practice-interviews

Sigiloso

24 de mar. de 2014

I used a queue and a hashmap to implement this class. However, this not that efficient. The interviewer give me a hint to use doubly linked list instead of queue.

6