I am making a simple program using interpolation search in c++. I am wondering why it would not read the elements I input in the array

后端 未结 0 1538
天命终不由人
天命终不由人 2021-01-20 14:37
int interpolationSearch(int arr[], int n, int x)
{
int lo = 0, hi = (n - 1);
while (lo <= hi && x >= arr[lo] && x <= arr[hi])
{
    if (lo =         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题