Description
https://leetcode.com/problems/largest-number/description/
Naive Solution
Write a comparactor.
1 | class Solution: |
Use Build-in method nested in string comparsion
When compare which string is larger, the straight forward way is experiment, this is how things worked in this question. There is no bothering analyse why the left larger than right, but just compare it.