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?
2238 Solvers
1291 Solvers
Generate a string like abbcccddddeeeee
239 Solvers
07 - Common functions and indexing 4
335 Solvers
263 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!