Skip to main content
Blind 75 Medium ★★ ★★★

Number of Connected Components in an Undirected Graph

Number of Connected Components in an Undirected Graph (Medium) · Topics: Depth-First Search (DFS), Breadth-First Search (BFS), Union Find, Graph.

Solve on LeetCode

Problem Breakdown & Company Frequency

Company Frequency Peak 33% · Amazon 33%, Google 22%, Meta 12% · 2/5★
Techniques & Algos DFSBFSUnion Find
Data Structures Graph
Topics Depth-First Search (DFS), Breadth-First Search (BFS), Union Find, Graph

Self-Review Practice Checklist

  • State a brute-force baseline first along with its time and space complexity.
  • Identify how DFS / BFS / Union Find reduces redundant work using Graph.
  • Verify boundary inputs: empty collections, single elements, duplicates, and negative or overflow values.

Module Context & References

Blind 75 · Graphs 6 curated graphs problems
NeetCode 150 · Graphs 13 curated graphs problems
MeetAPro FG 300 295 unique FAANG+ high-frequency problems from MeetAPro FG 300
Personal Notes · Markdown

Technologies & Interview Topics Covered

Switch between short-term interview tracks and long-term 80/20 engineering depth to practice JavaScript internals, React rendering and hooks, timed frontend machine coding UI challenges, MeetaPro FG300, Blind 75 & NeetCode 150 DSA patterns, Python & FastAPI APIs, PostgreSQL query optimization & MVCC, Redis caching, Applied AI RAG pipelines & evaluations, and distributed system design.