模拟法 自然数0,1,2,..,10,11,..,99,100,101,.., 可以根据自然数的位数(digitCount)划分为: 区间1:0-9 区间2:10-99 区间3:100-999 ... 从小到大,进行计位递增模拟,确定n所在区间后,再结合该区间内自然数位数和n,即可确定对应数字。 # @param n int整型 # @return int整型 # class Solution: def findNthDigit(self , n: int) -> int: # 从小到大,找到位数n所在区间 digitCount = 1 lowLimit,highLimit = 0,...