When I was learning the divide and conquer approach, I came to this example (
CodePudding user response:
You're right. But here "to add all results" means the sum of multiplies of each power of x
together to find the final result which is a polynomial, i.e., the sum of multiplies of x
, x^2
, ..., x^n
. In this sense, the sum of the four polynomials with power of O(n)
, takes O(n)
.