Question
A given series of numbers and arithmetic operations can be reached by different numbers.For example {4,5,3,2,10,1} numbers and {+, * }this arithmetic operations using like
A given series of numbers and arithmetic operations can be reached by different numbers.For example {4,5,3,2,10,1} numbers and {+, * }this arithmetic operations using like this
5*3+2+(1+10)*4
(1+5)*10+2*(3+4)
example:{2,5,1,4,10,3} {+,*,/ } target number is 45
output like this : 4 + (5 + (3(2 + (10/1))))
number format should be
(xi ?(xj ?(xk ?(xi?.......))))
please help me for this problem recursice solution
*There can be more than one result, in this case you only need one result. You do not have to use all of the arithmetic operations, but you can not use any other operations. The number sequence will only consist of integers. What you can do you should use integer arithmetic in operations, if you can not find the result exactly, you should find the closest result you can find.
* PLS can not be used STACK !!!!
*US?NG ARRAY
*arithmetic operations and number array to be taken from user
java programming language to be used.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started