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

6 lines
70 B
Mathematica
Raw Permalink Normal View History

2013-04-10 15:42:53 -07:00
>> binarySearchIter([1 2 3 4 5 6 6.5 7 8 9 11 18],6.5)
ans =
7