History of Idiom 124 > diff from v20 to v21
Edit summary for version 21 by Alekzcb:
[Haskell] accidentally a line
[Haskell] accidentally a line
↷
Version 20
2017-09-21, 18:06:37
Version 21
2017-09-21, 18:07:58
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.
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.
Comments bubble
Ord is used to allow use of < and >.
t is the target to search for and l is the list.
Comments bubble
Ord is used to allow use of < and >.
t is the target to search for and l is the list.