Depends on what you mean.
Assuming that memoization was done correctly, the number of "operations" will be the number of numbers generated. This means that the execution time of the function grows in relation to the number of numbers you are trying to generate.
So this will be O (n), where n is the number of generated numbers.
source
share