How many squares on the co-ordinate plane exist with one vertex at P(–1, 1) and having atleast one of the coordinate axes as axis of symmetry?
Answers
Answered by
1
I know it
The questions answer is 7
Answered by
1
Step-by-step explanation:
Input:points[] = {(0, 0), (0, 2), (2, 0), (2, 2), (1, 1)}
Output: 1
Explanation:
As the points (0, 0), (0, 2), (2, 0), (2, 2) forms square which is parallel to the X-axis and Y-axis, Hence the count of such squares is 1.
Input:points[] = {(2, 0), (0, 2), (2, 2), (0, 0), (-2, 2), (-2, 0)}
Output: 2
Explanation:
As the points (0, 0), (0, 2), (2, 0), (2, 2) forms one square, whereas points (0, 0), (0, 2), (-2, 0), (-2, 2) forms other square which is parallel to the X-axis and Y-axis,
Hence the count of such squares
please mark me as braninlist please please please please please
Similar questions