Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Identify 4-directionally connected groups of customers in a grid.
Verify that every customer in a group has a driver available at the exact same coordinate.
Count the total number of groups that meet the full coverage requirement.
What This Tests
Grid-based graph traversal
Connected component discovery
Visited state tracking
Conditional flag management during iteration
Common Patterns
Graph Traversal
DFS/BFS
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected