basic module
¶
basic.
binarySearch
(
arr
:
list
,
val
:
int
)
→
int
[source]
¶
Binary search function
Parameters:
[in] arr: list of integers to search
[in] val: value to search
Return:
int: the index where it is found
-1: if not found
q2
Navigation
Contents:
q2
basic module
Related Topics
Documentation overview
q2
Previous:
q2
Quick search