Question: Write a function that takes one parameter, an array. This array will contain consecutive numbers from 1 to n in random order. However, the array

Write a function that takes one parameter, an array. This array will contain consecutive numbers from 1 to n in random order. However, the array will be missing a number. Your function should return the missing number in the array. For example, if I pass in the array [5,4, 1, 2] your function should return 3
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
