Test - public static void main(String args cfw public static int binSearch(int num int x cfw int n = num.length if(n = 0 | x > num[n-1 | x < num[0

Test - public static void main(String args cfw public...

This preview shows page 1 out of 1 page.

public static void main(String [] args) { public static int binSearch(int[] num, int x) { int n = num.length; if(n == 0 || x > num[n-1] || x < num[0]) return -1; else return binRec(num,x,0,n-1); } public static int binRec(int[] num, int x, int i, int j)

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture