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
1y

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
5mo
WHICH DATA ARE SLECTED IN FILTER OPTION AND AUTO FILTER ARE THEN CLAULATED IN ROOM EDO
Anonymous
5mo
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
8mo
Some peoples are not to be calculated sir.....
SHAILESH CHAUHAN
11mo
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 😂
Add answer anonymously...

Deloitte Data Analyst interview questions & answers

A Data Analyst was asked 3w agoQ. Define the process flow of a delivery app.
A Data Analyst was asked 7mo agoQ. Explain the order of execution in SQL.
A Data Analyst was asked 10mo agoQ. What is conditional formatting?

Popular interview questions of Data Analyst

A Data Analyst was asked 3w agoQ1. Define the process flow of a delivery app.
A Data Analyst was asked 7mo agoQ2. Explain the order of execution in SQL.
A Data Analyst was asked 10mo agoQ3. What is conditional formatting?

Top HR questions asked in Deloitte Data Analyst

A Data Analyst was asked 3mo agoQ1. Where do you see yourself in 5 years?
A Data Analyst was asked 5mo agoQ2. Can you tell me about your project?
A Data Analyst was asked 04 Feb 2023Q3. Tell me about yourself.
Deloitte Data Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter