MCPcopy Create free account
hub / github.com/betomoedano/JavaScript-Coding-Interview-Questions / bottom

Function bottom

matrix/zero-matrix.js:97–102  ·  view source on GitHub ↗
(row, col, matrix)

Source from the content-addressed store, hash-verified

95}
96
97function bottom(row, col, matrix) {
98 if (row >= matrix.length - 1) return;
99 for (let i = row; i < matrix.length; i++) {
100 matrix[i][col] = 0;
101 }
102}
103
104function left(row, col, matrix) {
105 if (col <= 0) return;

Callers 1

zeroMatrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected