Let X be any 3 digit number.
Let Y be the number obtained by reversing the digits of X.
Let D = X - Y.
What is the maximum value of D ?
PS : Please assume that the first digit of any of the three digit numbers cannot be zero.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Let X be written as
100 a +10 b+c where 0 <=a,b,c<= 9.
Y is equal to 100 c + 10 b + a.
D = X - Y or 99*(a-c).
Max occurs when a - c is equal to 8.
Hence D = 792.
Sample values of X,Y,D
901,109,792
981,189,792
971,179, 792.