0

www.johndcook.com · 15d · discuss

Many words can be spelled by stringing together chemical symbols. For example, sarcasm can be written S Ar Ca Sm using the symbols for sulfur, argon, calcium, and samarium. How would you write a program to determine whether a word can be written by stringing together chemical element abbreviations ignoring case? Obviously this isn’t a […] The post A frivolous problem with a deeper lesson first appeared on John D. Cook.