You are given an integer n representing the dimensions of an n $ imes$ n grid, and a rectangles where rectangles[i] = [start_x, start_y, end_x, end_y] denotes a rectangle on the grid.
A cut is a horizontal or vertical line spanning entirely across the grid. A cut is valid if it does not intersect the interior of any rectangle, though it may touch a rectangle along its edges.
Return true if it is possible to make either false.
Constraints:
n
rectangles.length
rectangles[i][0] rectangles[i][2] n
rectangles[i][1] rectangles[i][3] n
No two rectangles overlap.
You are given an integer n representing the dimensions of an n $ imes$ n grid, and a rectangles where rectangles[i] = [start_x, start_y, end_x, end_y] denotes a rectangle on the grid.
A cut is a horizontal or vertical line spanning entirely across the grid. A cut is valid if it does not intersect the interior of any rectangle, though it may touch a rectangle along its edges.
Return true if it is possible to make either false.
Constraints:
n
rectangles.length
rectangles[i][0] rectangles[i][2] n
rectangles[i][1] rectangles[i][3] n
No two rectangles overlap.