Overlapping Rectangles


Given two 2D rectangles, write a function that returns true if they overlap and false otherwise. Specifically, you are given the (x, y)-coordinates of the upper left and lower right corners of each rectangle, for a total of 8 numbers.


Answer