Sobes.tech
Junior — Senior

Determining the index of a given element in a sorted array

livecode

Task condition

Given a sorted array of numbers. Find the specified element and return its position in the array. If the element is not present, the function should return -1.