The figure here shows a 3 x 3 grid. As you can see each cell can have maximum four walls. What is maximum number of walls that a N x N grid can have? This 3 x 3 grid has 24 walls.
-
UP 0 DOWN 0 1 1
1 Answers
Lokesh Verma
·2009-11-05 20:20:36
for a n x n grid, the number of walls will be nx(n+1)x2
I think the method is obvious?