[CodeSignal] Sequential House Builder
Capital One interview questions · Medium · OA round · 6 tests
Activate houses on an infinite number line, but reject any build that would fill a one-cell gap between two already-active neighbors.
The full question, tests and reference solution are available with a plan that includes Capital One.
Run your code with Ctrl+Enter to see results.