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.