Given a word, how you would spell it with element symbols from the periodic table? For instance, if given the string "Paper", you could return these symbols: Pa P Er (Protactinium, Phosphorus, Erbium).
I'll give you a string, and you return a cell-array of strings. The answer is not always unique. I'll check that you use only element symbols, and that when they are glued together they spell the right string.
Examples
'Paper' => {'Pa','P','Er'}
'America' => {'Am','Er','I','Ca'}
'Paige' => {'Pa','I','Ge'}
The test suite is case-insensitive. Only strings with possible solutions will be supplied.
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers30
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15781 Solvers
-
197 Solvers
-
13243 Solvers
-
Make a random, non-repeating vector.
11188 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
253 Solvers
More from this Author54
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
It's unfortunate that not all names can be build with the periodic table. I've tried this as a kid. The best that I can do with my name is RaF or RaFAl.