One is when n is odd:
First, divide this column number into the first half and the second half, and then completely reverse the position of the second half before and after the first half. At this time, the odd digits of the first half number and the even digits of the second half number are grouped, and the others are grouped. At this time, the absolute value of the difference between the sum of two groups of numbers is the smallest, which is 1.
Second, when n is an even number:
The grouping situation is similar to the above, except that odd numbers are grouped together and even numbers are grouped together. At this point, the result is 0.