New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Tesla
Coding Question
AI Insights
Quick Summary
Identify connected regions of land ('1') in a 2D grid.
Calculate the perimeter for each island by counting exposed edges.
Return the maximum perimeter found among all islands.
What This Tests
Grid traversal and boundary checking
Recursive depth-first search implementation
State management with visited tracking
Accumulation and maximization logic
Common Patterns
DFS/BFS
Graph Traversal
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected