J
J
jorshjorsh952017-10-19 15:15:27
Algorithms
jorshjorsh95, 2017-10-19 15:15:27

How to automatically pick up signs to get the right number?

Hello.
There are n numbers, and there is a number that should be obtained after the operations of all these n numbers, how to choose the signs?
For example, there are numbers 2,3,4,5, and the final number is 28, we must carry out a checkmate operation with these numbers in order to get 28
Options:
(2 * 5-3) * 4
, etc.
This thought has been tormenting me for a long time, there is only overkill how else is it possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
longclaps, 2017-10-19
@longclaps

You can also look at the answer or ask here.
And so the problem is NP-complete, bust.

D
Dimonchik, 2017-10-19
@dimonchik2013

will you break bitcoin? buy on the fork, then people will show)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question