Interview Question – (Microbe colony population)

Interview Question – (Microbe colony population)

/* 
 * Medical research lab. 
 * Phd - student. 
 * microbe - analyze its life cycle. 
 * If you start a microbe colony with a single microbe - it is growing extremely fast compared to other microbes. He want to understand and estimate growth provided there is enough resoruces for continous growth. 
 * Microbe - corm - reproduces via corms. 
 * First day it generates "3" corms. ==> For next three days it generates "3" each day. ==> Each corm will become another microbe in a day - on the same day it is born. 
 * After "3" days --> the corm will generate "2" new corms for next two days. 
 * after five days (3 + 2) cycle repeats. 
 * It dies after 51 days. 
 * Each corm starts following same cycle on the day they are born. They don't reproduce on the same day, but they will add "3" more micros from next day on-wards.
 
 ** After 365 days, how many corms will be there in the colony.  
** TODO: Make this post a little better. 
** TODO: Write  solution(s)
*/ 
Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *