Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betomoedano/JavaScript-Coding-Interview-Questions
/ left
Function
left
matrix/zero-matrix.js:104–109 ·
view source on GitHub ↗
(row, col, matrix)
Source
from the content-addressed store, hash-verified
102
}
103
104
function
left(row, col, matrix) {
105
if
(col <= 0)
return
;
106
for
(
let
i = col; i >= 0; i--) {
107
matrix[row][i] = 0;
108
}
109
}
110
111
const
matrix = [
112
[0, 2, 3, 4],
Callers
1
zeroMatrix
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected