Problem 45276. No of squares in a grid
43.18% Correct | 56.82% Incorrect
Last Solution submitted on Apr 09, 2023
Dyuman Joshi on 24 Dec 2020
Just wondering, how can a 1x1 grid have any rectangles or square?
Christian Schröder on 28 Feb 2023
Just wondering about the same thing --- I think what's meant here is that you've got a grid of MxN squares, i.e. of (M+1)x(N+1) points, rather than MxN points.
Solution CommentsShow comments
Problem Recent Solvers17
Sum the elements in either diagonal of a square matrix
More from this Author165
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!