Rectangle Board with Point Queries and Undo

Implement a rectangle board supporting rectangle insertion, counting how many rectangles cover a point, and undo.

Clarification: The post explicitly mentions these three operations but does not s...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: