Problem 20. Summing digits
Solution Stats
Problem Comments
-
6 Comments
The test suite was broken, as many of you suspected. I fixed it and rescored the problems.
I like this problem:)
very interesting problem
Good
The test case 3 is totally wrong. It needs immediate correction. The code maker didn't notice that b=25 is a number not a single digit. If you're doing the sum of digits it always ends up with a single digit, it will never end up with number cause number itself is carrying multiple digits.
Just for the badge ; )
Solution Comments
Show commentsProblem Recent Solvers7241
Suggested Problems
-
8357 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
551 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
360 Solvers
-
481 Solvers
-
724 Solvers
More from this Author96
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!