MCPcopy
hub / github.com/austingebauer/go-leetcode / reachedAtlantic

Function reachedAtlantic

pacific_atlantic_water_flow_417/solution.go:156–158  ·  view source on GitHub ↗
(matrix [][]int, r, c int)

Source from the content-addressed store, hash-verified

154}
155
156func reachedAtlantic(matrix [][]int, r, c int) bool {
157 return r >= len(matrix) || (r > -1 && c >= len(matrix[r]))
158}
159
160func reachedPacific(r, c int) bool {
161 return r < 0 || c < 0

Callers 3

canReachPacificFunction · 0.85
canReachAtlanticFunction · 0.85
waterCanFlowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected