Suppose there is a room in the office and X people enter room throughout the day, Y people leave throughout the day [continuously people are entering the room, some are staying there, and rest are going out] .. so tell me the code to calculate how many people are there in that room at the EOD..?

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

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
9d
WHICH DATA ARE SLECTED IN FILTER OPTION AND AUTO FILTER ARE THEN CLAULATED IN ROOM EDO
Anonymous
23d
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
3mo
Some peoples are not to be calculated sir.....
SHAILESH CHAUHAN
6mo
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.
11mo
its not flexible
Anonymous
1y

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
1y
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
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
Get AmbitionBox app

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