How to break recursive for partition search not sorted

前端 未结 0 1295
甜味超标
甜味超标 2021-01-21 18:49
#include
int find(int *a,int l,int r,int value)
{
    if(l<=r)
    {
        int mid=(l+r)/2;
        if(a[mid]== value) return mid;
        find(a,l,         


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