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
#define p 10000007 | |
//#define lli long long int | |
vector<int> roll; | |
class Solution { | |
bool match(string s,int len,int size,string& ans) | |
{ | |
unordered_map<int,vector<int>> m; //Key->hashValue...Value->starting index of substring | |
int hash=0; //curr window hash |