Skip to content

Instantly share code, notes, and snippets.

std::vector<std::string> recursion(std::vector<char> chars, int min_rec, int max_rec)
{
std::vector<std::string> results;
if (min_rec <= 1)
{
for (char c : chars)
{
results.push_back(std::string(1, c));
}