Build Blocks and Check Interval Availability
There is a linear plot of length n, indexed from 1 to n. Initially, every position is empty. Process q operations:
[1, x]: build a unit block at positionx. It is guaranteed that positi...
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:
