An open API service indexing awesome lists of open source software.

https://github.com/nickklos10/efficient_recursive_function


https://github.com/nickklos10/efficient_recursive_function

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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