Problem
Maximum Value of an Arithmetic Expression Problem
Parenthesize an arithmetic expression to maximize its value.
Input: An arithmetic expression consisting of digits as well as plus, minus, and multiplication signs.
Output: Add parentheses to the expression in order to maximize its value.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.