Slalom Interview Question

Given a sorted array with integers from 1 to 10, there is one number missing. Find that number.

Interview Answer

Anonymous

Feb 2, 2021

calculate sum from ints that should exist using math subtract ints that are there by looping through the array