Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ dfs
Method
dfs
python/2092-find-all-people-with-secret.py:12–18 ·
view source on GitHub ↗
(src, adj)
Source
from the content-addressed store, hash-verified
10
time_map[t][dst].append(src)
11
12
def
dfs(src, adj):
13
if
src in visit:
14
return
15
visit.add(src)
16
secrets.add(src)
17
for
nei in adj[src]:
18
dfs(nei, adj)
19
20
for
t in sorted(time_map.keys()):
21
visit = set()
Callers
nothing calls this directly
Calls
2
dfs
Function · 0.50
add
Method · 0.45
Tested by
no test coverage detected