I have a expression containing extra brackets .Write an algo which can remove unwanted brackets like expression is (((a+d)*(a-2))) so we shuld be able to get (a+d)*(a-2)

 

One solution:

Think it will be good to start with converting this to Hungarian notation (using recursion)

And then convert back to normal view with brackets

相关文章:

  • 2021-07-13
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2021-07-23
  • 2021-08-01
猜你喜欢
  • 2022-12-23
  • 2021-08-14
  • 2021-11-20
  • 2021-06-25
  • 2022-01-25
  • 2021-09-08
相关资源
相似解决方案