## Question 1 What is the output if the following array is given as input? [7, 8, 9, 11, 12] ### Options 1. 1 Correct ---------------------------- 2. 10 Incorrect We aren’t looking for the first missing positive number that is missing in the range of elements in input, but for the first missing positive number that’s missing if we start from $1$. ---------------------------- 3. 13 Incorrect We aren’t looking for the first missing positive number after the largest element in our array, but for the first missing positive number that’s missing if we start from $1$. ---------------------------- 4. 14 Incorrect ---------------------------- --------------------------------------------- ## Question 2 What is the output if the following array is given as input? [-1, -2, -3, -4, -5] ### Options 1. 0 Incorrect We’re looking for the missing positive number, and 0 is not a positive number. ---------------------------- 2. 1 Correct ---------------------------- 3. -6 Incorrect We’re looking for the smallest positive number, not the smallest negative number. ---------------------------- 4. -7 Incorrect ---------------------------- ---------------------------------------------