Minimize Value by Parentheses in Concatenated Expression
Easyvisa
Given two integers n and m, concatenate them into a string 'n+m', then insert parentheses in this string to minimize its value. Output the minimized value after inserting the parentheses. You can assu...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
