题目:
class Solution {
public:
vector<int> printNumbers(int n) {
vector<int> result;
int max = pow(10, n)-1; //最大n位数的求法
for(int i=1;i<=max;i++){
result.push_back(i);
}
return result;
}
};
标签:17,Offer,int,打印,vector,位数
From: https://www.cnblogs.com/fly-smart/p/17660728.html