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 algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.