16
thedev
7y

They give you 2 containers, one with one amibea the second with 2 amibeas.

Amibeas divide themselves into 2 identical amibeas after 3 minutes.

The container with 2 amibeas get filled up after 3 hours.

How long​ does it take the one with one amibea to get filled up.

The test was named:"Javascript Test"....

I first thought, should I write this in JS?

Spoiler: the answer is 3h and 3 minutes.
But why? What's the link with JS?

Comments
  • 2
    This is a simple exponential, as the 1A container has half the amoeba in the beginning, after t time, it will still have half the amount. But since every 1 timetick doubles the cintents of the container, t+1 time in the A1 container == t time in the A2 container
  • 2
    Yeah. And it's very simple and I answered after like 15 seconds.
  • 0
    @DLMousey 😁😁😂😂
Add Comment