Lamps Illumination

From Databricks interviews, this coding interview problem asks you to process lamp ranges on a number line and determine illumination counts at specific control points. Given an array of lamp intervals and an array of points, return for each point how many lamps cover it. Clear interview question on intervals and counting.

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: