|
Edwin pose la question : I'm asked to come with, and program (in Ansi -C) an algorithm that calculates all the possible results of a calculation with 6 numbers and one result. For example: I want all calculations with the numbers 3, 3, 8, 8, 2, 9, and with a result of 786. all numbers may be used once, arithmetical operations allowed are + - / *, fractions are not allowed. The problem here is what is a fast method to do this (i.e. what's algorithm that can to this). Claude Tardif lui répond. |