题解 | #打印从1到最大的n位数#
打印从1到最大的n位数
http://www.nowcoder.com/practice/4436c93e568c48f6b28ff436173b997f
class Solution:
def printNumbers(self , n: int) -> List[int]:
# write code here
return [i for i in range(1,10**n)]
打印从1到最大的n位数
http://www.nowcoder.com/practice/4436c93e568c48f6b28ff436173b997f
class Solution:
def printNumbers(self , n: int) -> List[int]:
# write code here
return [i for i in range(1,10**n)]
相关推荐