Answer to Question #37630 in Python for argoo
given an n*n binary matrix(only 1 and 0),how can we go about counting number of 2*2 squares(squares are made by 1)
for example A=[[1,1],[1,1]] is considered to make one 2*2 square . or
A = [[1, 1, 0, 1],
[1, 1, 1, 1],
[1, 1, 1, 0],
[0, 1, 1, 1]]
is considered to make four 2*2 squares.
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
Python
Comments
Leave a comment