PRACTICE

Union Find Interview Questions

19 Union Find problems asked across FAANG and top tech companies. Approach hints, optimal solutions, and related problems.

Ready to try these in a real interview?

I'm Alex. I'll interview you on 2 problems like these at your level, ask follow-ups, and give you a scored report.

πŸ”’

to save your progress.

Companies

Topics

Union Find 19
128.Longest Consecutive Sequence
ArrayHash TableUnion Find
Medium+3β–Ά Mock
200.Number of Islands
Depth-First SearchBreadth-First SearchMatrix
Medium+7β–Ά Mock
721.Accounts Merge
ArrayHash TableString
2503.Maximum Number of Points from Grid Queries
ArrayTwo PointersBreadth-First Search
785.Is Graph Bipartite?
Depth-First SearchBreadth-First SearchUnion Find
2812.Find the Safest Path in a Grid
ArrayBinary SearchBreadth-First Search
547.Number of Provinces
Depth-First SearchBreadth-First SearchUnion Find
827.Making A Large Island
ArrayDepth-First SearchBreadth-First Search
305.Number of Islands II
ArrayHash TableUnion Find
737.Sentence Similarity II
ArrayHash TableString
1970.Last Day Where You Can Still Cross
ArrayBinary SearchDepth-First Search
1258.Synonymous Sentences
ArrayHash TableString
694.Number of Distinct Islands
Hash TableDepth-First SearchBreadth-First Search
886.Possible Bipartition
Depth-First SearchBreadth-First SearchUnion Find
928.Minimize Malware Spread II
ArrayHash TableDepth-First Search

Practice with a Mock Interview

Solve these Union Find problems under real interview pressure with our AI interviewer.

Start Mock Interview β†’