Problem 1856. Molecule Atomic Wt (CHONS) Molecules
Solution Stats
Problem Comments
-
1 Comment
Update: Test suite has been enhanced to include double digit numbers.
Solution Comments
-
2 Comments
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?
-
2 Comments
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?
Problem Recent Solvers43
Suggested Problems
-
Find all elements less than 0 or greater than 10 and replace them with NaN
14602 Solvers
-
Number of 1s in the Binary Representation of a Number
400 Solvers
-
Return unique values without sorting
822 Solvers
-
451 Solvers
-
315 Solvers
More from this Author260
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!