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

Method isInGrid

LabEnv/01Lab/Percolation.java:44–46  ·  view source on GitHub ↗
(int row, int col)

Source from the content-addressed store, hash-verified

42 }
43
44 private boolean isInGrid(int row, int col) {
45 return row >= 1 && row <= gridSize && col >= 1 && col <= gridSize;
46 }
47
48 // opens the site (row, col) if it is not open already
49 public void open(int row, int col) {

Callers 1

openMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected