CodingReported in a candidate post, Jan 2025
Number of Provinces
Filed under DoorDash
The question
Given a graph representation, find the number of connected components (provinces).
No write-up yet. Related questions below have one.
Related DoorDash questions
Collected from public candidate posts and coding forums. Updated Nov 2026.