Hey Sarang,
No need to apologize - that was perfect! That was as systematic an answer as I think you can come up with. When they ask you to minimize the difference, you should start thinking about priorities. The biggest difference in a subtraction problem of 3-digit numbers is in the hundreds digits...9XY - 1AB is going to be a huge gap regardless of X, Y, A, and B, so we need to keep the hundreds close together. So Priority One is:
Hundreds Digits Adjacent
Next, the biggest possible spread is in the Tens digits, so we want those together. But here we need to think of how to keep them together. 340 - 230 is still a big gap of over 100. If we could have 301-299, we'd be as close together as possible, so we ideally want to use the 0 or 1 as the Tens digit of the bigger number and 9 as the Tens digit of the smaller number to keep them close - we want to maximize the smaller number and minimize the larger number. We have 1 and 9 available, so we want 9 for the smaller and 1 for the larger. Priority Two becomes:
Tens Digits: 9 and 1
Then we want to narrow the gap for what's left, and we'll still have adjacent digits left to use so we want to maximize the smaller number and minimize the large number to keep them close.
Since we have the 1 and 9 earmarked for the Tens digits and we need adjacent numbers for the Hundreds, we could use:
61_
59_
or
31_
29_
Either way, the remaining digits are adjacent, so we could pick either:
612
-593
= 19
or
315
-296
= 19
Either way, the correct answer is 19.