MCPcopy Create free account
hub / github.com/neetcode-gh/leetcode / areAllEqual

Method areAllEqual

java/0427-construct-quad-tree.java:30–40  ·  view source on GitHub ↗
(int row, int column, int n)

Source from the content-addressed store, hash-verified

28 }
29
30 private boolean areAllEqual(int row, int column, int n) {
31 for (int i = 0; i < n; i++) {
32 for (int j = 0; j < n; j++) {
33 if (grid[row][column] != grid[row + i][column + j]) {
34 return false;
35 }
36 }
37 }
38
39 return true;
40 }
41
42}

Callers 1

dfsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected