Turnstile crossing times

0
Remix

People arrive at a single turnstile at given times, each wanting to enter or to exit, and one person passes per second. When people going both ways are waiting, a priority rule that depends on how the turnstile was used in the previous second decides who goes. Return the second at which each person crosses.

GoogleTechnical phone screenLast asked May 2026
No answer yet. Write the first one; the best answer gets endorsed.