Cody

Problem 43619. Divide polynomial p1 by p2.

Divide polynomial p1 by p2 given as vectors. Return result q and r vectors which corresponds the quotient and remainder of division respectively.

Example

p1=[3 2 5 1 0 2 ]

p2=[1 2 0 5 0 3]

Then q=[3] r=[0 -4 5 -14 0 -7]

Solution Stats

65.96% Correct | 34.04% Incorrect
Last Solution submitted on Jun 04, 2020

Problem Comments