# Get result 100 from 123456789 by inserting + \ - between digits, backtracking

• 01-06-2013, 05:31 PM
JakubM
Get result 100 from 123456789 by inserting + \ - between digits, backtracking
On paper it is written long number 123456789. Insert between some digits signs + or -.
So that you incurred after evaluating the expression given number 100.
For example: 123-45-67 +89 = 100
Write a program that finds and displays all the solutions. Use backtracking.
• 01-06-2013, 05:37 PM
JosAH
Re: Get result 100 from 123456789 by inserting + \ - between digits, backtracking
Cool, what can we win?

kind regards,

Jos
• 01-06-2013, 05:37 PM
Sierra
Re: Get result 100 from 123456789 by inserting + \ - between digits, backtracking
Nice assignment! Good luck! :)
• 01-06-2013, 07:24 PM
DarrylBurke
Re: Get result 100 from 123456789 by inserting + \ - between digits, backtracking
• 01-06-2013, 08:26 PM
JosAH
Re: Get result 100 from 123456789 by inserting + \ - between digits, backtracking
That thread is closed on Stack Overflow; I'll close it here as well; we're not rentacoder ...

kind regards,

Jos