โ† Amazon questions

Chemical Formula Atom Count

Filed under Amazon

Given a chemical formula as a string (e.g., "H2O" or "K4(ON(SO3)2)2"), return the count of each atom as a sorted string or map, where atoms without explicit counts have a count of 1.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.