022 Plus/subtract Number

given an integer.

-±±+all the digits, get the final results.

we can get the digits one by one, add it to list. (list.add(list.size() - 1, digit));
and then we -±+ them, return the results.

posted @ 2020-09-29 12:04  EvanMeetTheWorld  阅读(16)  评论(0)    收藏  举报