Pregunta de entrevista de SpaceX

Find a missing number in a sequentially ordered list Follow-up: do it on an unordered list

Respuesta de la entrevista

Anónimo

10 abr 2023

Use binary search for the first question. Follow up: maintain a dictionary and store whether the item was in the array for all items.