</>OfferRetriever
DashboardDiscuss
NEW

Spring Hire Sale

Limited Time Deal: Unlock all premium questions for over 30% off

$10.42$7.08

08

:

04

:

58

:

51

Get this deal
Back to Dashboard

[CodeSignal] Sequential House Builder

Medium

You are monitoring cell activations on an infinite integer grid line. Initially, no cells are active.

You are given an array queries of distinct integer positions. Cells are activated one at a time in the given order. A cell can only be activated if at least one of its adjacent cells (left or right neighbor) is not already active. ...