Problem 49. Sums with Excluded Digits
52.17% Correct | 47.83% Incorrect
Last Solution submitted on Mar 21, 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 Solvers1820
Which values occur exactly three times?
Convert a Cell Array into an Array
Is this is a Tic Tac Toe X Win?
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!