Extend the formula weight calculator to support nested parentheses with multipliers that apply to the whole group.
Unlock detailed company stats for this questionUpgrade
Examples: H(CH4)2 returns 33 and ((CH4)) returns 16.
Community answers
No answers contributed by the community yet.
Related questions
Write calculateWeight(formula) for formulas with C=12, H=1 and O=8, single-digit multipliers and no parentheses.Related courses

Course

Course
Course
