As reported: Capital One Full Stack Engineer CodeSignal assessment, Oct 2026: four questions in 70 minutes — a string manipulation question, a stack-based file-system-commands problem like Simplify Path, a Rotate Image variation where the diagonal elements stay unchanged, and Brightest Position on Street. Brightest Position on Street was also the last of four questions in a Capital One new-grad online assessment (Sep 2026).
lights[i] = [position, range] lights the closed interval [position − range, position + range]. The brightness of a position is the number of lamps that light it. Return the smallest position with the maximum brightness.
This is LeetCode 2021 — Brightest Position on Street.
Example
[[-3,2],[1,2],[3,3]] -> -1 (positions -1 and 0…3 are each lit by two lamps; -1 is the smallest)
[[1,0],[0,1]] -> 1
[[1,2]] -> -1
Constraints: 1 ≤ lights.length ≤ 10^5; -10^8 ≤ position ≤ 10^8; 0 ≤ range ≤ 10^8.
Code runner format: one line with lights. Implement brightestPosition(lights); the harness prints the position.