Count the squares formed by connected points in a grid diagram.
Unlock detailed company stats for this questionUpgrade
Count the number of squares in a diagram of connected points. Constraints: cannot use string, char, image or binary for inputs. Squares must have edges to be counted, and a square can span multiple points. In the example diagram, xycb and xauq are squares, but bcwq and xzfq are not. This is NOT the Detect Squares problem.
Diagram: x----y-------z----a | | | | | | b----c d | | | | q----w-------f----u | | | | | | v------------j----k
Community answers
No answers contributed by the community yet.


