As per the wiki page provided in problem 156 "leading zeros are not allowed". Thus the solution set here is flawed.
Chris, you are correct. The definition of a parasitic number does state "No Leading Zeros." That's why I explicitly stated that some of these values would have a leading zero, and when they would occur. While these numbers are technically not parasitic, the method for generating them is the same.
3081 Solvers
Return the largest number that is adjacent to a zero
3752 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
140 Solvers
1163 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!