A street is represented by a number line. You are given a lights where lights[i] = [position_i, range_i] indicates that there is a street lamp at coordinate position_i that illuminates the inclusive interval
The brightness of a position is defined as the total number of lamps illuminating that position.
Return the brightest position on the street. If multiple positions share the maximum brightness, return the smallest position among them.
Constraints:
lights.length
lights[i].length
position_i
range_i
A street is represented by a number line. You are given a lights where lights[i] = [position_i, range_i] indicates that there is a street lamp at coordinate position_i that illuminates the inclusive interval
The brightness of a position is defined as the total number of lamps illuminating that position.
Return the brightest position on the street. If multiple positions share the maximum brightness, return the smallest position among them.
Constraints:
lights.length
lights[i].length
position_i
range_i