Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <map>
#include <cmath>
#include <ctime>
#include <vector>
using namespace std;
template <typename T>
class Cache {
public:
#include <iostream>
#include <vector>
using namespace std;
bool isSubset(vector<char> A, vector<char> B);
bool isSubset(vector<char> A, vector<char> B) {
bool map[26] = { false };
for(char inA : A)
map[(inA - '0')] = true;