Question: You are given n integer numbers ( n > 2), operators (+ - *), and a goal number. You will use the given numbers and
You are given n integer numbers (n > 2), operators (+ - *), and a goal number. You will use the given numbers and pick these binary operators in a certain order such that your result will be close to the goal number as much as possible. You cannot use the same number twice, but you do not need to use all the numbers. You should use each operator at least once.
Example: Inputs = {3, 7, -1, 13}, Target = 121, A possible solution is: ((13) + (1)) * ((7) + (3)) = (12) * (10) = 120
What kind of problem is this? Should we use algorithmic or a data-driven approach? Why? Which method we should use? What will be the computational complexity of the method you preferred? Explain in detail.Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
