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

Method BoggleSolver

LabEnv/09Lab/BoggleSolver.java:27–31  ·  view source on GitHub ↗
(String[] dictionary)

Source from the content-addressed store, hash-verified

25 // Initializes the data structure using the given array of strings as the dictionary.
26 // (You can assume each word in the dictionary contains only the uppercase letters A through Z.)
27 public BoggleSolver(String[] dictionary) {
28 root = new Node();
29 for (String s : dictionary)
30 put(root, s);
31 }
32
33 private void put(Node x, String key) {
34 for (char c : key.toCharArray()) {

Callers

nothing calls this directly

Calls 1

putMethod · 0.95

Tested by

no test coverage detected