Interview Question

Created by admin on Mon, 19/11/2012 - 12:52
Question: 

Below is an equation that isn't correct yet. By adding a number of plus signs and minus signs between the ciphers on the left side (without changes the order of the ciphers), the equation can be made correct. 123456789 = 100 How many different ways are there to make the equation correct?

Language: 
Answer: 

There are 11 different ways: 123+45-67+8-9=100
123+4-5+67-89=100
123-45-67+89=100
123-4-5-6-7+8-9=100
12+3+4+5-6-7+89=100
12+3-4+5+67+8+9=100
12-3-4+5-6+7+89=100
1+23-4+56+7+8+9=100
1+23-4+5+6+78-9=100
1+2+34-5+67-8+9=100
1+2+3-4+5+6+78+9=100