MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / get

Method get

LabEnv/09Lab/BoggleSolver.java:42–48  ·  view source on GitHub ↗
(Node x, String key)

Source from the content-addressed store, hash-verified

40 }
41
42 private boolean get(Node x, String key) {
43 for (char c : key.toCharArray()) {
44 x = x.children[c - 'A'];
45 if (x == null) return false;
46 }
47 return x.isTernimal;
48 }
49
50 // Returns the set of all valid words in the given Boggle board, as an Iterable.
51 public Iterable<String> getAllValidWords(BoggleBoard board) {

Callers 1

scoreOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected