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.
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.
It's a good thing that the length of a string does not count towards the score!
But it would fail to >12 elements phrase like "ButherLikesStewHisWifeLikesBrowniesWithBananas".
Which doors are open?
Test for balanced parentheses
Longest run of consecutive numbers
Spot the outlier
Beads on a Necklace (Convex Hulls)
Placing Beads Neatly in a Box
Find the stride of the longest skip sequence
Twist 'n' Match
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office