Problem 49. Sums with Excluded Digits
52.16% Correct | 47.84% Incorrect
Last Solution submitted on Mar 20, 2023
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.
Selvaraaju Murugesan on 15 Nov 2012
I will improve this code !
bainhome on 8 May 2015
wrong answer,need to use setdiff
Problem Recent Solvers1819
Count from 0 to N^M in base N.
Remove the two elements next to NaN value
Deleting an element in a matrix
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!