Given an expression remove the unnecessary brackets in it

Given an expression remove the unnecessary brackets in it without creating an ambiguity in its execution. 
input output 
ex1: (a+(b)+c)  => a+b+c 
ex2: (a*b)+c     => a*b+c 

posted @ 2011-12-19 22:28  百分百好牛  阅读(259)  评论(0编辑  收藏  举报