MCPcopy Create free account
hub / github.com/bighuang624/Algorithms-notes / indexOf

Method indexOf

code/algs4/BinarySearch.java:56–67  ·  view source on GitHub ↗

Returns the index of the specified key in the specified array. @param a the array of integers, must be sorted in ascending order @param key the search key @return index of key in array a if present; -1 otherwise

(int[] a, int key)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

rankMethod · 0.95
mainMethod · 0.95
mainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected