gary@interview:~/interview/coding/386-lexicographi….md$
$ cat ./coding/386-lexicographical-numbers.md
[Coding]

386. Lexicographical Numbers

────────────────────────────────────────────────────────────

386. Lexicographical Numbers

class Solution:
    def lexicalOrder(self, n: int) -> List[int]:
        strArr = [str(i) for i in range(1,n+1)]
        strArr.sort()
        return [int(s) for s in strArr]

--tags#Other
$ ls ./coding/ | grep -v 386-lexicographical-numbers
265. Paint House II256. Paint House143. Reorder List1762. Buildings With an Ocean View
← cd ../codingcd ~