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).
------ ------ ------ | Pa | | P | | Er | ------ ------ ------
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.
(Thanks for the idea, Shriram!)
I had the syntax for doing this with grep for a list of words, but couldn't quite figure out how to change it into MATLAB code...
fails to "heralds", "frames", "pace", "bathe", etc.
Thanks for the suggestion. I added "frames" to the test.
559 Solvers
340 Solvers
Get the length of a given vector
1354 Solvers
Implement simple rotation cypher
805 Solvers
Create logical matrix with a specific row and column sums
104 Solvers