Thursday, September 24, 2015

MJ [40] Count squares

Question:
Given a set of points, find all squares composed by four points of the set.

Ref
[1] http://www.mitbbs.com/article_t1/JobHunting/32968629_0_1.html
[2] https://www.codechef.com/problems/D6
[3] https://www.quora.com/Given-two-diagonally-opposite-points-of-a-square-how-can-I-find-out-the-other-two-points-in-terms-of-the-coordinates-of-the-known-points

No comments:

Post a Comment