Const tracing array in random order
I want to...
std::random_shuffle(begin(a), end(a));
for (auto x : a) {
use(x);
}
... but a
- const
. Is the possibility of random ordering possible in O (n) time and O (1) space?
+3
Marcelo cantos
source
to share
No one has answered this question yet
See similar questions:
20
or similar:
23498
3714
1994
1518
1250
1239
838
629
234
115