1291. Sequential Digits

1291. Sequential Digits

class Solution:
    def sequentialDigits(self, low: int, high: int) -> List[int]:
        ans=[]
        for i in range(1,10):
            num=i
            nt_digit=i+1
            while num

模拟

你可能感兴趣的:(leetcode)