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

Method rank

code/algs4/BinarySearch.java:79–82  ·  view source on GitHub ↗

Returns the index of the specified key in the specified array. This function is poorly named because it does not give the rank if the array has duplicate keys or if the key is not in the array. @param key the search key @param a the array of integers, must be sorted in ascending order @r

(int key, int[] a)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.95

Tested by

no test coverage detected