Check Whether a Board Fits Between Blockers

On an infinite number line, there are several blockers. Each blocker is at an integer coordinate, and a board may not cover a blocker position.

You are then given multiple queries. Each query provide...

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: