Problem 856 · Medium

Score of Parentheses

Compute a score for a balanced parentheses string where nested pairs double their inner value. The visual nests the brackets and shows each pair's contribution to the total.

Open the interactive visualisation