Problem 2381. Sum of digit range
Example:
If A is n1, and B is n2 digit positive numbers. A*B's digit range will be [c d] (c = min & d = max). Then return c+d.
Solution Stats
Problem Comments
-
4 Comments
Is the explanation of the problem and test suite the same meaning?
Can anyone help me in understanding the problem statement? It's so confusing.
@Gareth
@Dyuman
If number of digits in A, n1 = 4, then A belongs to {10^4 to 10^5-1}
You will be given n1 and n2. You need to find the sum of ( min and max number of digits ) in A*B.
Let c be the number of digits in the smallest product of an n1-digit number and an n2-digit number and d be the number of digits in the largest product of an n1-digit number and an n2-digit number. Return c+d.
Solution Comments
Show commentsProblem Recent Solvers48
Suggested Problems
-
2118 Solvers
-
Back to basics 22 - Rotate a matrix
922 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
667 Solvers
-
Fix the last element of a cell array
1645 Solvers
-
construct matrix with identical rows
201 Solvers
More from this Author6
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!