axis‐aligned rectangles intersection

Viewed 11560

I need an algorithm that takes an unsorted array of axis aligned rectangles and returns any pair of rectangles that overlaps

Each rectangle has two variables, coordinates of the upper-left corner and the bottom-right corner

3 Answers
Related