BearCola
7/25/2017 - 12:29 PM

search other (2-3 17:29)

search other (2-3 17:29)

int search(int[] data, int begin, int end, int target) {
  if (begin > end) {
    return -1;
  } else if (target == items[end]) {
    return end;
  } else {
    return search(data, begin, end - 1, target);
  }
}