Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ valid
Function
valid
graphs/multi_heuristic_astar.py:123–126 ·
view source on GitHub ↗
(p: TPos)
Source
from the content-addressed store, hash-verified
121
122
123
def
valid(p: TPos):
124
if
p[0] < 0 or p[0] > n - 1:
125
return
False
126
return
not (p[1] < 0 or p[1] > n - 1)
127
128
129
def
expand_state(
Callers
1
expand_state
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected