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

Function right

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

Source from the content-addressed store, hash-verified

88}
89
90function right(row, col, matrix) {
91 if (col >= matrix[row].length - 1) return;
92 for (let i = col; i < matrix[row].length; i++) {
93 matrix[row][i] = 0;
94 }
95}
96
97function bottom(row, col, matrix) {
98 if (row >= matrix.length - 1) return;

Callers 1

zeroMatrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected