U can try breaking the given no nd storing the individual digits in an
array /vector using the "reversing a digit" algorithm and then carry out
further computations on the individual digits...
On Nov 15, 2012 9:06 PM, "Amir Hossein Sharifzadeh" <
[email protected]> wrote:

> Hi,
>
> Suppose we have a number and some operators(*,-,+,/). We would like to
> represent and compute operators along operands during a number.
> For example:
>
> N = 201
> Operators: +,-,* and /
>
> Results should be represented as following down: (I represented just + and
> - operators)
> 2 + 0 + 1
> 2 + 01 (wrong)
> 20 + 1
>
> 2 + 0 - 1
> 2 - 01 (wrong)
> 20 - 1
>
> 2 - 0  + 1
> 2 - 0  - 1
>
> We would not change the numbers and should insert operators between
> operands and compute the possibility values. (For example 2 + 01 may not be
> calculated)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to