Programming-Idioms

History of Idiom 124

Idiom #124 Binary search for a value in sorted array

Write function binarySearch which returns the index of an element having value x in sorted array a, or -1 if no such element.

#Edit dateEdit SummaryAuthor
👁 Δ 32 2020-10-15, 17:33 [Ruby] comply to variable name steenslag
👁 Δ 31 2020-10-08, 12:56 +Related URL Wikipedia programming-idioms.org
👁 Δ 30 2019-09-27, 09:34 New Perl implementation by user [daxim] daxim
👁 Δ 29 2019-09-26, 19:49 New Java implementation by user [godbolt] godbolt
👁 Δ 28 2019-01-24, 11:44 [JS] *whine whine* 1.7.4
👁 Δ 27 2019-01-24, 11:42 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 26 2018-12-28, 10:42 [Erlang] Added demo Foxy
👁 Δ 25 2018-12-28, 10:40 New Erlang implementation by user [Foxy] Foxy
👁 Δ 24 2018-08-03, 20:48 [Rust] Comments emphasis programming-idioms.org
👁 Δ 23 2018-06-12, 17:36 New Rust implementation by user [GobbleCock] GobbleCock
👁 Δ 22 2017-10-28, 11:30 New Python implementation by user [Oldboy] Oldboy
👁 Δ 21 2017-09-21, 18:07 [Haskell] accidentally a line Alekzcb
👁 Δ 20 2017-09-21, 18:06 [Haskell] changed explanation Alekzcb
👁 Δ 19 2017-09-21, 18:04 New Haskell implementation by user [Alekzcb] Alekzcb
18 2016-06-17, 21:36 [Ruby] added to comment s