🦉
AI Tutor
Explore
People
Courses
Pricing
Sign in
Sign up
Number of Islands
Graphs · DFS · BFS · Matrix · greeting
Rapid fire mode
Interview
Learn
00:00
Mute
End interview
select
rect
note
arrow
text
clear
Number of Islands
m × n binary grid
▶
1
▶
1
▶
0
▶
0
▶
1
▶
0
▶
0
▶
0
▶
1
▶
1 = land
0 = water
4-neighbors
▶
Owl:
Before we write any code, tell me how you would approach this. What does an island mean to you in terms of graph traversal?
You:
—