Problem 49. Sums with Excluded Digits
Solution Stats
Problem Comments
-
1 Comment
Sanzhar Askaruly
on 28 Jul 2019
simple but fun :)
Solution Comments
-
2 Comments
Deepthi Palagati
on 6 Aug 2018
answer to the first test case should be 205
and for third test case should be 558
as question given as summing all digits except the digit mention as 'm'
Bryan Lambo
on 16 Jan 2020
the problem means to exclude all numbers with the digit 'm'
so example n=20, m=5, you exclude numbers 5 and 15 as these contains the digit m=5.
-
1 Comment
steph26
on 18 Aug 2016
j'en ai chié
-
1 Comment
bainhome
on 8 May 2015
I wonder how could this kinda solution pass the test?!
-
1 Comment
Marco Riani
on 10 Jan 2022
Very ingeneous solution. Congratulations!
-
2 Comments
Selvaraaju Murugesan
on 15 Nov 2012
I will improve this code !
bainhome
on 8 May 2015
wrong answer,need to use setdiff
Problem Recent Solvers1829
Suggested Problems
-
982 Solvers
-
Back to basics 13 - Input variables
256 Solvers
-
Vectorize the digits of an Integer
304 Solvers
-
312 Solvers
-
860 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!