Math and Geometry
159 / 170Math and GeometryLesson 4 of 5About 47 min
Geometry that is really Unit 1: fix one thing, look up what the others would have to be.
Three corners of a square are fixed, and one of them has two points at the same position. Type the two lines it prints.
from collections import Counter points = Counter([(1, 1), (1, 3), (3, 1), (3, 3), (3, 3)]) print("points at each corner:", [points[(1, 3)], points[(3, 1)], points[(3, 3)]])print("squares with (1,1) as one corner:", points[(1, 3)] * points[(3, 1)] * points[(3, 3)])Read the constraints first and let them tell you what complexity is expected. Derive the approach, implement it, run the tests, and submit when it passes.