Thursday, March 8, 2012

Rectangular Blocks in Matrix


Find the number of rectangular blocks in a matrix where block is the one having same numbers


{1, 1, 1},
  {1, 1, 3},
  {4, 4, 5}
In the above Matrix answer should be 4 as given below
1,1,1
3
4,4
5

No comments:

Post a Comment