Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 429 Bytes

README.md

File metadata and controls

6 lines (5 loc) · 429 Bytes

Efficient recursive function

Wrote an efficient recursive function that takes in a sorted array of numbers, two integers, low and high, representing indexes into the array, and another integer, value, and returns the index in the array where value is found in the array in between index low and high, inclusive. If value is NOT found in the array in between indexes low and high, inclusive, then the function should return -1