simple but fun :)
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'
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.
j'en ai chié
I wonder how could this kinda solution pass the test?!
I will improve this code !
wrong answer,need to use setdiff
Find the two most distant points
1648 Solvers
How to find the position of an element in a vector without using the find function
2482 Solvers
Project Euler: Problem 7, Nth prime
540 Solvers
325 Solvers
574 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!