Answer to Question 2-6

Question. Suppose that an algorithm performs f(n) steps, and each step takes g(n) time. How long does the algorithm take?

Answer. f(n)g(n).