Google Onsite - Reject
Anonymous User
1227

Find max area of the continent. A continent has both land and water. Land is marked as X, water is marked as .

Land and water are connected horizontally and vertically, not diagonally.

eg:
. . . . .
. . x x .
. . . x .
. . . . x

ans: 3

. . . . .
x x x . .
x . x . .
x x x . .
. . . . .

ans: 9

. . . . .
. x x x .
. x . x .
. x . x .

ans:7

image

ans: 25

Comments (6)