Search
⌘K

Leetcode 856. Score of Parentheses

Compute the numeric score of a balanced parentheses string under the rules '()' = 1, concatenation adds scores, and enclosing parentheses double the inner score; the task is to correctly combine contributions from nesting and adjacent groups to produce 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.