<filename>lexicographical-numbers/lexicographical-numbers.py
class Solution:
    def lexicalOrder(self, n: int) -> List[int]:
        arr=[]
        for i in range(1,n+1):
            arr.append(str(i))
            
            
        arr.sort()
        for i in arr:
            i=int(i)
        return arr    
<filename>lexicographical-numbers/lexicographical-numbers.py
class Solution:
    def lexicalOrder(self, n: int) -> List[int]:
        arr=[]
        for i in range(1,n+1):
            arr.append(str(i))
            
            
        arr.sort()
        for i in arr:
            i=int(i)
        return arr    