Method to use all the numbers in a string to equal other number

  • Context: Undergrad 
  • Thread starter Thread starter ginyu
  • Start date Start date
  • Tags Tags
    Method Numbers String
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
ginyu
Messages
1
Reaction score
0
I was recently given the challenge to take a string of numbers (ages) and + x - / to equal another number (age). As part of the challenge each number can only be used once and you must only use numbers here to do multiply, add to, subtract from or divide by.

NUMBERS
7 9 11 37 45 45 47 75
TARGET NUMBER
70

Im not looking as much for the answer, more if there is any efficent method to do this rather than guess and check
 
Mathematics news on Phys.org