Answer the question
In order to leave comments, you need to log in
How to create a library for combinatorial matching algorithm?
It is said that there are permutations, but the source code was not found. I wanted to see as an example.
include <combination.h>
такую библиотеку создать. чтоб в нем содержался классы и методы решение сочетания.
int main()
{
std::string s = "abc";
std::sort(s.begin(), s.end());
do {
std::cout << s << '\n';
} while(std::next_combition(s.begin(), s.end()));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question