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 <iostream> | |
#include <map> | |
#include <cmath> | |
#include <ctime> | |
#include <vector> | |
using namespace std; | |
template <typename T> | |
class Cache { | |
public: |
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 <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; |