- 2
Hi! Can you write function
It is necessary to create a function Binary_Find (F, array []), which takes a number as an argument, and the array in which to search for this value, returns the ordinal number (index) of the element in the array that matches F, or -1 if the element is not found. The return must be implemented via a return statement. The task can be performed either through a recursive call (when the function calls itself) or through an iterative call (loop). Note: The program must first sort the original array, and then return the ordinal number of the element in the sorted array. If there are several such numbers in the array, its first occurrence is displayed.
1 Respuesta
+ 1
Please avoid making duplicate questions
https://www.sololearn.com/Discuss/2945766/?ref=app