Solution 14 is classic Tim utilizing a multidimensional single for loop with a stunning magical rune string.
This solution is not general. How would this deal with NaCl for instance?
Another astounding solution by Alfonso. A symbolic solution with regexprep using an expert logical twist to accommodate all molecules.
This solution is not general. How would it deal with CaCO3?
Most nonzero elements in row
Back to basics 26 - Keywords
Wrapping the Tower of Pisa
Generate a vector like 1,2,2,3,3,3,4,4,4,4
Too Many Zeros, Dump Them!
PACMAT - G03 Ghosts use minimum path to PACMAT; 3 Lives
GJam 2017 Kickstart: Parentheses (Small)
USC Fall 2012 ACM: Rover Maze
Extract Built In Functions and Toolbox Functions from String or Function Handle
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