This file contains 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
#include <my_epi/common.h> | |
#include <sstream> | |
#include <fstream> | |
#include <map> | |
struct MemoryUsage { | |
long start_time, end_time; | |
int memory_usage; | |
}; |
This file contains 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
void PrintCombination(const std::string& str, const std::vector<size_t>& combination) { | |
for (size_t i = 0; i < combination.size(); ++i) { | |
std::cout << str[combination[i]]; | |
} | |
std::cout << std::endl; | |
} | |
void PrintCombinationFixedLength(const std::string& str, size_t combination_length) { | |
std::vector<size_t> combination; | |
size_t string_length = str.length(); |