add missing else
This commit is contained in:
parent
457e00f4fe
commit
f1d1727bf6
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ int binsearchr(int array[], int from, int to, int target) {
|
|||
|
||||
if (array[m] == target) {
|
||||
return m;
|
||||
} if (array[m] > target) {
|
||||
} else if (array[m] > target) {
|
||||
return binsearchr(array, from, m-1, target);
|
||||
} else {
|
||||
/* array[m] < target */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue