Skip to content

Instantly share code, notes, and snippets.

View sidsb's full-sized avatar

siddhartha sidsb

  • Salesforce
  • Hyderabad
View GitHub Profile
#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