Problem clarification and contract
10%Senior signals
- ✓Clarifies server indexing (0-indexed vs 1-indexed), whether connect can be called on the same pair multiple times, and what connect(a, a) should do.
- ✓Confirms connect and isConnected can be interleaved in any order and both must be efficient, not just isConnected.
Staff-level signals
- ◆Asks about the expected number of servers and total operations to justify near-constant-time amortized operations.
Common red flags
- ×Codes immediately while assuming isConnected is called only once at the end without confirming interleaving.
