$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #21

Fill the keyword so it reads 'if not visited'.

if ____ visited[node]:
    dfs(node)   # if not visited

Answer: not (also accepted: not)

not negates the boolean → visit unseen nodes.
Play Problem Solving ▸