Search
⌘K

Leetcode 726. Number of Atoms

Parse a chemical formula with multi-letter element names, numeric multipliers, and nested parentheses to compute the total count of each atom, correctly propagating multipliers through nested scopes. Output the atom counts in lexicographic order in the specified compact string format.


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.