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
Check to see if a Sudoku Puzzle is Solved
Sum the elements in either diagonal of a square matrix
Determine the number of odd integers in a vector
MATCH THE STRINGS (2 CHAR) very easy
03 - Matrix Variables 5
Find the peak 3n+1 sequence value
Replace NaNs with the number that appears to its left in the row.
DNA N-Gram Distribution
Most nonzero elements in row
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office