Count ways to spell a word with element symbols
Given the symbols of the chemical elements and a word, count the ways to write the word as a sequence of element symbols, ignoring case. For example, "Physics" splits as P-H-Y-Si-C-S, P-H-Y-Si-Cs, P-H-Y-S-I-C-S or P-H-Y-S-I-Cs.
No answer yet. Write the first one; the best answer gets endorsed.
