what does it mean by
int i =recurrLinearSrch(a+1,n-1,key);
if(i==-1){
return -1;
}
what does it mean by
int i =recurrLinearSrch(a+1,n-1,key);
if(i==-1){
return -1;
}
if after recursion the value of i comes out to be -1 then
return -1 from the function ( implies element is not present)
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.