When submitting a solution in C++, please select either C++14 (GCC 6-32) or C++17 (GCC 7-32) as your compiler. ×

Lecseruz's blog

By Lecseruz, history, 22 months ago, In English

Hi guys. So, i have this problem on homework in the college. And i have to solve it in 1 hour. I got no ideas. I hope you can help me. So we got N rectangles. And we're given (x1, y1), (x2, y2), coordinates of bottom left corner and top right corner, respectively. For each rectangle, we have to find the number of rectangles it intersects with.

  • Vote: I like it
  • -7
  • Vote: I do not like it