Search
⌘K

Leetcode 2019. The Score of Students Solving Math Expression

Compute the expression's correct value under the given precedence (multiplication before addition, left-to-right) and then determine all values obtainable by any other parenthesization (i.e., different operator orders); grade answers by awarding 5 points for the correct value, 2 points for any alternate valid value, and sum the total.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.