RosettaCodeData/Task/Binary-search/MATLAB/binary-search-4.m

6 lines
70 B
Mathematica
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
>> binarySearchIter([1 2 3 4 5 6 6.5 7 8 9 11 18],6.5)
ans =
7