Function binarySearch

  • Finds the index in accumulatedValues of the highest value that is less than or equal to targetValue

    Returns

    Parameters

    • targetValue: number

      search term

    • accumulatedValues: number[]

      array of accumulated values to search in

    Returns number

Generated using TypeDoc