标签:i++ class pre code result ret int res cto
class Solution {
public:
vector<int> grayCode(int n) {
vector<int> result;
for(int i=0;i<1<<n;i++)
{
result.push_back(i^i>>1);
}
return result;
}
};
标签:i++ class pre code result ret int res cto
原文地址:https://www.cnblogs.com/smallredness/p/10676108.html