Question

Write a function to find out how many days does it take a virus to exceed the given number?

Login to Submit

Examples

A virus doubles every day. There is only 1 virus in the first day. After each day, it doubles.

1st day - 1
2nd day - 2
3rd day - 4
4th day - 8
5th day - 16

You should find how many days does it take to exceed the given number.

Input: 10
Output: 5

This way of growth is also called Exponential growth.