Pregunta de entrevista de Tata Consultancy Services

Finding missing element from a array containing 0 to 20

Respuesta de la entrevista

Anónimo

4 de ene de 2021

I had to write the code in notepad, just the functional part. It was a sorted array so just had to check if arr[i ]+1==arr[i +1].