This question evaluates proficiency in C programming, API design, low-level data representation for polynomials, and algorithmic competence in performing coefficient convolution while handling edge cases like differing degrees, zero and negative coefficients.
Implement an API in C to multiply two polynomials.
A polynomial is represented by its coefficients. You must define the input and output format as if you were writing a small library function for other users.
Example polynomials:
coeff[i]
is the coefficient of
).
Return (or fill) a polynomial representing using your chosen representation.