Thursday, March 8, 2012

Find all the Expressions


Given a number 123456789 and two opearators + and *. You can use this two operators as many times u want. But you cant change the sequence of the number given there. The evaluated value is 2097.

e.g. 1+2+345*6+7+8+9=2097

You have to find all the such expressions that evaluates and value is
equal to the given value. You can use concatenation of numbers like 345 is concatenated there.

No comments:

Post a Comment