BoxDepth Problem:
Given $n$ rectangles, such that their sides are parralel to the coordinate axes ($x$ and $y$), Find a subset with maximum size such that the intersection of its members are not empty.
Question:
Provide a polynomial time algorithm for BoxDepth problem.
Note 1: The algorithm doesn't have to be optimal. The only thing that matters is the time complexity.
Note 2: I was thinking of taking each $2$ rectangles and check if their intersection is empty. But, that takes more than polynomial time. Is there a better algorithm that i'm not aware of?
Hint:
I hope this helps $\ddot\smile$