PinterestOA #6
Minimize Expression with Parentheses
估计中等评测数据准备中,可先阅读题面
You are given a string expression</
Example 1
Input:
expression = "1639+5628"
Output:
"16(39+5)628"
Explanation:
Placing the parentheses around 39+5 gives the minimum value among all valid choices for this expression.