title: Algorithm for Combinational Values
body: <p>I was trying to write an algorithm for given problem:</p>
  
  <p>we are given a set of numbers- {n1,n2,n3,n4,n5......}
  and we have to check that can we derive a number(Say X) using addition and subtraction by given numbers. X will always be less than all elements of the given set.</p>
  
  <p>Eg.</p>
  
  <p>Set: {2,3,4,6,9}<br>
  given number: 1, Result: Yes<br>
  9-4-4 =1 </p>
  
  <p>Set: {3,4,6,9}<br>
  given number: 2, Result: Yes<br>
  6-4 = 2</p>
  
  <p>Thanks in advance. </p>