MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 11/Question11_3/Question.java:44–52  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

42 }
43
44 public static void main(String[] args) {
45 int[] a = { 2, 3, 2, 2, 2, 2, 2, 2 , 2 , 2 };
46
47 System.out.println(search(a, 0, a.length - 1, 2));
48 System.out.println(search(a, 0, a.length - 1, 3));
49 System.out.println(search(a, 0, a.length - 1, 4));
50 System.out.println(search(a, 0, a.length - 1, 1));
51 System.out.println(search(a, 0, a.length - 1, 8));
52 }
53
54}

Callers

nothing calls this directly

Calls 1

searchMethod · 0.95

Tested by

no test coverage detected