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

Function getBoards

javascript/0036-valid-sudoku.js:71–75  ·  view source on GitHub ↗
(boards)

Source from the content-addressed store, hash-verified

69 new Array(rows).fill().map(() => new Array(cols).fill(false));
70
71var getBoards = (boards) => {
72 const [rows, cols] = [9, 9];
73
74 return new Array(boards).fill().map(() => initBoard(rows, cols));
75};
76
77var searchGrid = (board, boxes, cols, rows) => {
78 const [_rows, _cols] = [9, 9];

Callers 1

isValidSudokuFunction · 0.85

Calls 1

initBoardFunction · 0.85

Tested by

no test coverage detected