Add all the integers from 1 to n in which the digit m does not appear. m will always be a single digit integer from 0 to 9.
no_digit_sum(10,1) = 44
because 1 and 10 are excluded from the sum and
sum(2:9) = 44
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'
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
Back to basics 18 - justification
150 Solvers
What is the distance from point P(x,y) to the line Ax + By + C = 0?
209 Solvers
208 Solvers
272 Solvers
Side of an equilateral triangle
1522 Solvers