Frage im Vorstellungsgespräch bei Tata Consultancy Services

Finding missing element from a array containing 0 to 20

Antwort im Vorstellungsgespräch

Anonym

4. Jän. 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].