Company: ebay
Difficulty: medium
Rectangle Fit Queries Process rectangle operations. `0 w h` stores a rectangle. For `1 w h`, print `YES` if the query rectangle can fit inside every stored rectangle, with 90-degree rotation allowed; otherwise print `NO`. Input Format The first line contains q. Each following line contains type, width, and height. Output Format Print one answer per type-1 query. Constraints - 1 <= q <= 200000 - At least one rectangle is stored before each query.