Write code to calculate the number of people in a room at the end of the day, given that X people enter and Y people leave continuously throughout the day.

AnswerBot
2y

Code to calculate the number of people in a room at EOD given X people enter and Y people leave throughout the day.

  • Use a variable to keep track of the number of people in the room at any given time.

  • In...read more

AnswerBot
2y

Code to calculate number of people in a room at EOD given X enter and Y leave throughout the day.

  • Create a variable to keep track of the current number of people in the room

  • Increment the variable by X ...read more

Anonymous
7mo
WHICH DATA ARE SLECTED IN FILTER OPTION AND AUTO FILTER ARE THEN CLAULATED IN ROOM EDO
Anonymous
7mo
I have written Deloitte Data Analyst Interview Questions and Answer in this blog. Must read before interview - https://corporateinterviewprep.blogspot.com/2024/11/deloitte-data-analyst-interview.html
Jagadeesh Chinnappa
10mo
Some peoples are not to be calculated sir.....
SHAILESH CHAUHAN
1y
Some people are not to be calculated.....
vamsi krishna
1y

def calculate_people_at_eod(people_enter, people_leave):

current_people_count = 0

# Assuming the length of people_enter and people_leave lists are the same

for i in range(len(people_enter)):

current_p...read more

Anshuman B.
1y
its not flexible
Anonymous
2y

Create a variable to keep track of the current number of people in the room

Increment the variable by X every time someone enters the room

Decrement the variable by Y every time someone leaves the room

R...read more

captainub
author
2y
currently not working
1 min silence .. though this was exactly same question I read before the interview in GFG interview Experience. I tried to solve, they helped and we together solved it 😂
Select
Add answer anonymously...

Deloitte Data Analyst interview questions & answers

A Data Analyst was asked 2mo agoQ. Define the process flow of a delivery app.
A Data Analyst was asked 2mo agoQ. What is partitioning?
A Data Analyst was asked 2mo agoQ. What is clustering in SQL?

Popular interview questions of Data Analyst

A Data Analyst was asked 2mo agoQ1. Define the process flow of a delivery app.
A Data Analyst was asked 2mo agoQ2. What is partitioning?
A Data Analyst was asked 2mo agoQ3. What is clustering in SQL?

Top HR questions asked in Deloitte Data Analyst

A Data Analyst was asked 4mo agoQ1. Where do you see yourself in 5 years?
A Data Analyst was asked 6mo agoQ2. Can you tell me about your project?
A Data Analyst was asked 6mo agoQ3. Tell me about your project experience.
Deloitte Data Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits