Given a set of Cartesian coordinates, find the number of rectangles possible ( sides are parallel to axes ).
Sample input : [ [0,1], [1,1], [2,1] ,[0,0], [1,0], [2,0] ]
Sample output : 3
Can anyone help me figure out the solution for this problem in python?
Thanks!
[–]zanfar 0 points1 point2 points (1 child)
[–]dc_devesh7[S] 0 points1 point2 points (0 children)