Leftmost Point with Maximum Streetlight Coverage
You are given n streetlights. Streetlight i has center c[i] and radius r[i], and illuminates the closed interval:
[c[i] - r[i], c[i] + r[i]]
Return the coordinate covered by the ...
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:
