LeetCode

179. Largest Number

When we customized a comparator, it won’t follow the simple descending order but compares two of the concatenations of the strings.

43. Multiply Strings

We solved this problem by simulating vertical multiplication which factoring the multiplier into coefficient and exponent.