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.
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.