Check if 4 Line Segments form a Rectangle

In this article, we will solve the problem of Check if 4 Line Segments form a Rectangle. This is a core problem of Computational Geometry.

Table of contents:

Introduction to Problem StatementProperties of the RectangleSolving the problemTracing a Few ExamplesImplementing the SolutionTime and Space ComplexityIntroduction to Problem Statement

In this problem, 4 line segments are given. Each line segment is denoted by the co-ordinates of its starting point and ending point. The problem is t...

 •  0 comments  •  flag
Share on Twitter
Published on January 03, 2022 23:35
No comments have been added yet.