id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

david.white@denison.edu cs112fall2015 > amoebaGrowth
prev  |  next  |  chance

An amoeba can split itself into two once every h hours. How many hours does it take for a single amoeba to become target amoebae? Write a function amoebaGrowth(h, target) that returns the answer to this question.


amoebaGrowth(0, 5) → 0
amoebaGrowth(1, 7) → 3
amoebaGrowth(2, 15) → 8

...Save, Compile, Run (ctrl-enter)

def amoebaGrowth(h, target):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Copyright Nick Parlante 2017 - privacy