How would I calculate logarithm in Java? How would I extend it to calculate for a sequence? I am trying to find solution for following:-
N different apps have different user growth rates. At a given time t, measured in days, the number of users using an app is g^t .
After how many full days will we have 1 billion total users across the N apps?
Example 1
Input: N = 1, growthRates = [1.5]
output = 52
Example 2
Input: N = 3, growthRates = [1.1, 1.2, 1.3]
output = 79