Counting Squares
March 3, 2013
algorithms, beginner, brute force, geometry, implementation, math, programming languages, python
No Comments
Count how many squares are there in the following figure. Easy validation by Python using Bruteforce, checking every possible pair of points (lower-left, and upper right) #!/usr/bin/env python # …