โ† Deloitte questions

Calculate people remaining in a room at end of day

Filed under Deloitte

Given a sequence of events where people enter and exit a room continuously throughout the day, write code to track and compute the net number of people remaining in the room at the end of the day.

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 Deloitte questions

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