Find if Path Exists in Graph

Easy · Graphs · about 10 minutes

Asked at Meta, Amazon, Microsoft, Bloomberg, Google, Jane Street, Susquehanna (SIG).

An undirected graph has vertices 0..n-1 connected by edges. Can you travel along edges from source to destination?

Related guides