我想......
this
...但function MyConstructor(val){
this.val = val;
return this; //attention here
}
var example = new MyConstructor(val);
为std::random_shuffle(begin(a), end(a));
for (auto x : a) {
use(x);
}
。在O( n )时间和O(1)空间中是否可以进行随机顺序遍历?