Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ndleah/python-mini-project
/ isValid
Function
isValid
Convoys_GameofLife/GameOfLife.py:45–46 ·
view source on GitHub ↗
(r, c)
Source
from the content-addressed store, hash-verified
43
dC = [1, 0, -1, -1, 0, 1, 1, -1]
44
45
def
isValid(r, c) -> bool:
46
return
(r >= 0 and r < rows and c >= 0 and c < cols)
47
48
for
i in range(rows):
49
for
j in range(cols):
Callers
1
play
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected