← Amazon questions

People sitting/standing simulation

Filed under Amazon

Given a binary array `people` where `1` represents standing and `0` represents sitting, simulate the row's state after `n` hours. In each hour, a standing person transitions to sitting (`0`) if at…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.