This commit is contained in:
anon
2024-01-23 21:29:06 +01:00
commit e64a072634
13 changed files with 683 additions and 0 deletions

16
source/util.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef UTIL_H
#define UTIL_H
#include <string>
std::string uniq(const std::string &s) {
std::string r = "";
for(auto i : s) {
if (r.find(i) == std::string::npos) {
r += i;
}
}
return r;
}
#endif // UTIL_H