This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); | |
} |