Domanda di colloquio di Tata Consultancy Services

Finding missing element from a array containing 0 to 20

Risposta di colloquio

Anonimo

4 gen 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].