Bloomberg LP Interview Question
Software Engineer / DevelopersAssuming they work independently (why shouldn't I) it takes 2.4 days.
Here is the calculation:
Worker 1 (x) needs 6 days and worker 2(y) needs 4 days.
So, x = 2y/3
Assume, they need together t days to finish the painting. So:
x*t + y*t = 4*y ( or 6*x)
2*y*t/3 + y*t = 4*y
5*y*t /3 = 4*y (we eliminite y)
t = 4*3 / 5 = 2.4 days
so, they need 2.4 days together.
A person finish the painting in 6 days. that means his one day work is 1/6 of total.
and B person finish the painting in 4 days. that means his one day work is 1/4 of total.
when both r to paint a home their one day work will be sum up to. (1/4)+(1/6)=10/24
the whole painting is finished in=1/(10/24)=24/10=2.4
so they both will take 2.4 days to finish painting.
Ans is 2.2 days.
6 days to make 1. so in 1 days he will make 1/6 part of painting
similarly other will make 1/4 part in one day.
When they both work together they will make 1/6+1/4 = 5/12 part of painting.
Now 1-5/12=7/12 part remains.
5/12 part is been made in 1 day
then 7/12 is been done in= (1/(5/12) )* 7/12 = 1.2 days.
So total days = 1.2+1 = 2.2 days.
If the fast worker is working at the rate of the slower one, then they are both working at the one house/6 days rate, so they will finish in 3 days.
- jerry April 20, 2006If they can work completely independently, then they can complete 5/12 of a house per day (1/6 + 1/4), meaning a full house takes 12/5 = 2.4 days.