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

Method isValidGrid

LabEnv/09Lab/BoggleSolver.java:96–98  ·  view source on GitHub ↗
(BoggleBoard board, int row, int col)

Source from the content-addressed store, hash-verified

94 }
95
96 private boolean isValidGrid(BoggleBoard board, int row, int col) {
97 return col >= 0 && col < board.cols() && row >= 0 && row < board.rows();
98 }
99
100 // Returns the score of the given word if it is in the dictionary, zero otherwise.
101 // (You can assume the word contains only the uppercase letters A through Z.)

Callers 1

dfsMethod · 0.95

Calls 2

colsMethod · 0.80
rowsMethod · 0.80

Tested by

no test coverage detected