about | help | code help+videos | done | prefs |
A zombie can convert two people into zombies everyday. Starting with just one zombie, how long would it take for the entire population of size pop to become zombies? Write a function zombieApocalypse(pop) that returns the answer to this question. zombieApocalypse(100) → 5 zombieApocalypse(1000) → 7 zombieApocalypse(7000000000) → 21 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy