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

Method construct

java/0427-construct-quad-tree.java:5–8  ·  view source on GitHub ↗
(int[][] grid)

Source from the content-addressed store, hash-verified

3 private int[][] grid;
4
5 public Node construct(int[][] grid) {
6 this.grid = grid;
7 return dfs(0, 0, grid.length);
8 }
9
10 private Node dfs(int row, int column, int n) {
11 Node node = new Node();

Callers

nothing calls this directly

Calls 1

dfsMethod · 0.95

Tested by

no test coverage detected