All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.
In a N x N grid
composed of 1 x 1 squares, each 1 x 1 square consists of a
/
, \
, or blank space. These characters divide the square
into contiguous regions.
(Note that backslash characters are escaped, so a \
is represented as
"\\"
.)
Return the number of regions.
Difficulty:
Medium
Lock:
Normal
All contents and pictures on this website come from the Internet and are updated regularly every week. They are for personal study and research only, and should not be used for commercial purposes. Thank you for your cooperation.