Maximum area of quadrilateralGiven four sides of quadrilateral a, b, c, d, find the maximum area of the quadrilateral possible from the given sides .Examples:  Input : 1 2 1 2Output : 2.00It is optimal to construct a rectangle for maximum area .  According to Bretschneider's formula, the area of a general quadrilateral is given
5 min read
Check whether four points make a parallelogramGiven four points in a 2-dimensional space we need to find out whether they make a parallelogram or not. A parallelogram has four sides. Two opposite sides are parallel and are of same lengths. Examples:Points = [(0, 0), (4, 0), (1, 3), (5, 3)]Above points make a parallelogram.Points = [(0, 0), (2,
15+ min read
Find the Missing Point of ParallelogramGiven three coordinate points A, B and C, find the missing point D such that ABCD can be a parallelogram.Examples : Input : A = (1, 0) B = (1, 1) C = (0, 1) Output : 0, 0 Explanation: The three input points form a unit square with the point (0, 0) Input : A = (5, 0) B = (1, 1) C = (2, 5) Output : 6,
13 min read