Bloomberg LP Interview Question for Software Engineer / Developers

Team: Supply Chain
Country: United States
Interview Type: In-Person

Comment hidden because of low score. Click to expand.
11
of 11 vote

We know that the bacteria doubles its volume in one minute. So, if it took the jar 1 hour to be full, we know that it it will take (1 hour - 1 min) i.e 59 mins for the jar to be half.

Comment hidden because of low score. Click to expand.
1
of 1 vote

59 minutes. as 2 pow 60 = full jar, hence half jar = 2 pow 60/2 = 2 pow 59 -> 59 minutes

Comment hidden because of low score. Click to expand.
1
of 1 vote

It takes 60 mins to fill the jar since bacteria doubles it's volume every 1min so to fill half the jar it takes 59 minutes

Comment hidden because of low score. Click to expand.
0
of 0 vote

59

Comment hidden because of low score. Click to expand.
0
of 0 vote

``2^60V=jar==>2^59=jar/2``

Comment hidden because of low score. Click to expand.
0

This is the good way to solve because it will give answer to any portion

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 minutes..Its like binary tree

Comment hidden because of low score. Click to expand.
0

can u explain it

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 min

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 miutes

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 mins

Comment hidden because of low score. Click to expand.
0
of 0 vote

half an hour daaahhh

Comment hidden because of low score. Click to expand.
0
of 0 vote

It will take 59 mimutes to fill half of the jar

Comment hidden because of low score. Click to expand.
0
of 0 vote

it will take 59 m.

Comment hidden because of low score. Click to expand.
0
of 0 vote

{{

it will take 59 minits.

}}

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 Minutes, As the volume gets doubled per minute.

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 minutes.

Comment hidden because of low score. Click to expand.
0
of 0 vote

Reverse engineering ... One hour to fill the jar .. and it doubles ..
if it half then it takes 30 mins .. :)

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 min

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 min

Comment hidden because of low score. Click to expand.
0

Seqnce formed is- 1 2 4 16 32.....
Its gp with common ratio 2.
Volm of bacteria at time t is 2 power t-1
volm at 60 min is 2power59.
Half of volm of 60 min-
vol@60 min/2=2power t-1 i.e t=59

Comment hidden because of low score. Click to expand.
0
of 0 vote

59 minutes is the correct answer. When I was asked this I was told that it was a worm that replicates vs bacteria. Now, assuming that we are starting with a single bacterium that replicates in the first minute N1, and by N60, the jar is full. How many worms or bacterium are there in the jar, in the 60th minute? If you want to really impress your audience, you should also be prepared to answer this question.

Hint: It's a very simple exponent

Comment hidden because of low score. Click to expand.
0
of 0 vote

log(2^60) ~ 18, so that'll be ~10^18 = 1 quintillion bacteria. :)

Comment hidden because of low score. Click to expand.
0
of 0 vote

The example of a beaker with a single bacterium in it. That divides and doubles itself. If you place the first bacterium into the beaker, how much time it takes to half full? And how much time it takes to full?

if we put the bacteria in 720 milliliter jar that you get the answer

Comment hidden because of low score. Click to expand.
0
of 0 vote

<<<666666>>>

Comment hidden because of low score. Click to expand.
0
of 0 vote

``9999``

Comment hidden because of low score. Click to expand.
0
of 0 vote

How could you all say that it wiil take 59 minute,...

It will take 30 minutes to fill the half of tbe jar because its volume is getting double every minute.

Comment hidden because of low score. Click to expand.
0
of 0 vote

what if the question is modified this way?
I have an empty water bottle. I drop one worm inside the water bottle and it divides in half, and the following worms divide in half, and the bottle fills up in 30 seconds. How many seconds would it take the bottle to fill up if I originally dropped in two worms?

Comment hidden because of low score. Click to expand.
0

29seconds

Comment hidden because of low score. Click to expand.
0

29sec

Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.