You will write three small functions about reproduction and sensitivity: the number of cells after some time, the time to reach a target, and the reaction time from a ruler drop.
The idea. A cell that divides every minutes gives cells after divisions, with the number of whole steps. The ruler drop gives a time with .
Your tasks.
cells_after. It gives the number of cells after some minutes, for a division time in minutes, from one cell.minutes_to_reach. It gives the first time, in minutes, at which the number of cells is at least the target.reaction_time. It gives the time in seconds for a ruler that fell a given distance in metres.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…