Available question text
Given an undirected graph of c stations whose connectivity is fixed, process queries that either mark a station offline or ask which operational station with the smallest id resolves a maintenance check for station x (if x is online it answers itself, otherwise return the smallest-id online station in x's connected component or -1 if none). The core challenge is to precompute components and support dynamic deletions while keeping track of the minimum alive id in each component for fast query answers.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3607. Power Grid Maintenance
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source