how can once evaluate a+b, when a and b are just variables.. Its not
necessary that the expression contains all the constants.

On Wed, Oct 13, 2010 at 10:07 AM, Shiyam code_for_life <
[email protected]> wrote:

> For every pair of braces,
> Evaluate the expression within the outer braces of current braces
> under consideration
> (1)With current braces
> (2)Without current braces
>
> If both are the same, then you can drop the current braces that its
> redundant.
>
> P.S for outer most braces, evaluate the entire expression with and
> without it
>
> Ex:
> (a+[b+c])
> Here to check if square braces are redundant
> (1)Evaluate (a+[b+c]) and (a+b+c)
> (2)If both are equal then drop the braces so expression can be reduced
> as (a+b+c)
> (3)Else the braces are required so they remain as (a+[b+c])
>
> Cheers
>
> 'Coding is an art and I'm one of the finest of them'
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<algogeeks%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" 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 this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to