Google Interview Question

A graph question with a pure DFS based approach.

Interview Answer

Anonymous

Aug 17, 2024

A follow-up question of above which was solved by UnionFind.