MCPcopy
hub / github.com/kevin-wayne/algs4 / min

Method min

src/main/java/edu/princeton/cs/algs4/ST.java:190–193  ·  view source on GitHub ↗

Returns the smallest key in this symbol table. @return the smallest key in this symbol table @throws NoSuchElementException if this symbol table is empty

()

Source from the content-addressed store, hash-verified

188 * @throws NoSuchElementException if this symbol table is empty
189 */
190 public Key min() {
191 if (isEmpty()) throw new NoSuchElementException("calls min() with empty symbol table");
192 return st.firstKey();
193 }
194
195 /**
196 * Returns the largest key in this symbol table.

Callers 15

lcpMethod · 0.45
compareMethod · 0.45
sortMethod · 0.45
buildMethod · 0.45
rMinQMethod · 0.45
updateMethod · 0.45
compareToMethod · 0.45
lcpSuffixMethod · 0.45
compareMethod · 0.45
mainMethod · 0.45
resizeMethod · 0.45
lessMethod · 0.45

Calls 1

isEmptyMethod · 0.95

Tested by

no test coverage detected