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

Function initTabu

javascript/0073-set-matrix-zeroes.js:21–24  ·  view source on GitHub ↗
(rows, cols)

Source from the content-addressed store, hash-verified

19};
20
21const initTabu = (rows, cols) => [
22 new Array(rows).fill(1) /* Space O(ROWS) */,
23 new Array(cols).fill(1) /* Space O(COLS) */,
24];
25
26const fillPlacements = (matrix, _row, _col) => {
27 const [rows, cols] = [matrix.length, matrix[0].length];

Callers 1

setZeroesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected