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

1. Member
Join Date
Jan 2013
Posts
1
Rep Power
0

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.

2. Re: Get result 100 from 123456789 by inserting + \ - between digits, backtracking

Cool, what can we win?

kind regards,

Jos

3. AN21XX
Join Date
Mar 2012
Location
Munich
Posts
297
Rep Power
5

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

Nice assignment! Good luck! :)

5. 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

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•