Polynomial Evaluate

Programming Interview Medium 7 views
Back to Questions

Problem Description

Given {x}, Create Polynomial class eval(x). Output value.

Input Format

Line1 n. Line2 n+1 coefficients. Line3 x.

Output Format

One integer value.

Sample Test Case

Input:
2 1 0 -1 3
Output:
8

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next