Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Identify connected regions of positive integers in a 2D grid.
Find the maximum value within each connected region.
Return the sum of these regional maximums.
What This Tests
Grid-based graph traversal
Recursive or iterative component exploration
State tracking and backtracking
In-place space optimization
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