You are given x,a. Find a polynomial p(y) with the leading coafficent 1 such that p(x)=a. How to write an algorithem to solve this efficently? I have no idea where to start

  • $\begingroup$ What did you try? Where did you get stuck? We're happy to help you understand the concepts but just solving exercises for you is unlikely to achieve that. You might find this page helpful in improving your question. We discourage "here is an exercise-style task, I don't know where to start" style questions. $\endgroup$
    – D.W.
    Jul 3 at 15:59

Choose $$p(y):=y + (a-x)$$

$x$ and $a$ here are the constants you are given.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.