How many bees are in the beehive?
- bees can be facing UP, DOWN, LEFT, or RIGHT
- bees can share parts of other bees
Ex1
bee.bee
.e..e..
.b..eeb
Answer: 5
Ex2
bee.bee
e.e.e.e
eeb.eeb
Answer: 8
- The hive may be empty or null/None/nil/...
- Python: the hive is passed as a list of lists (not a list of strings)