Library function for Permutation and Combination in C++
I decided to test the solutions by dman and Charles Bailey here. I’ll call them solutions A and B respectively. My test is visiting each combination of of a vector<int> size = 100, 5 at a time. Here’s the test code: Test Code struct F { unsigned long long count_; F() : count_(0) {} bool … Read more