find the number of walls ! . sounds simple ?

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.

1 Answers

62
Lokesh Verma ·

for a n x n grid, the number of walls will be nx(n+1)x2

I think the method is obvious?

Your Answer

Close [X]