Sobes.tech
Intern — Middle

Determining the missing number in a sequential array from 1 to 9

livecode

Task condition

Given an array consisting of eight unique natural numbers in the range from 1 to 9 inclusive. It is required to implement a function that will identify the missing value.

var numbers = new[] {1, 7, 2, 9, 6, 4, 5, 3};