386. Lexicographical Numbers


https://leetcode.com/problems/lexicographical-numbers/


Runtime: 174 ms, faster than 34.63% of Python3 online submissions for Lexicographical Numbers.
Memory Usage: 20.7 MB, less than 44.62% of Python3 online submissions for Lexicographical Numbers.


```python
class Solution:
    def lexicalOrder(self, n: int) -> List[int]:
        #5:22
        nums = [str(i) for i in range(1, n+1)]
        nums.sort()
        return [int(i) for i in nums]
        #5:24
```
