MCPcopy
hub / github.com/TheAlgorithms/JavaScript / get

Function get

Project-Euler/Problem011.js:53–59  ·  view source on GitHub ↗
(arr, y, x)

Source from the content-addressed store, hash-verified

51}
52
53function get(arr, y, x) {
54 if (y >= 0 && y < arr.length && x >= 0 && x < arr[y].length) {
55 return arr[y][x]
56 }
57
58 return 0
59}

Callers 1

largestProductInAGridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected