← Graphs Quiz: all 8 questions
Graphs Quiz · Question 3 of 8
How many islands are in this grid? (1 = land, 0 = water, connected up/down/left/right) (code)
How many islands are in this grid? (1 = land, 0 = water, connected up/down/left/right)
1 1 0 0
1 0 0 1
0 0 1 1
0 0 0 0
Answer & explanation
Correct answer: 2
The top-left group of three 1s is one island; the three 1s on the right form the second.
Can you get the rest right without peeking?
Take the timed Graphs Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →