Google | Onsite | Count Squares
Anonymous User
6635

Given a diagram with lines parallel to x axis and y axis, find the number of squares formed by these lines.

image

  1. Define data structure to represent diagram
  2. Algorithm to find the number of squares
Comments (10)