pub fn bin_search_0(a: &Vec<i32>, t: i32, left: i32, right: i32) -> i32Expand description
Recursive implementation of a binary search in O(log n) time. Returns the index of the target within a given array, if present. Otherwise the function returns -1.