Skip to content

Instantly share code, notes, and snippets.

View Sofiullah-Iqbal-Kiron's full-sized avatar

Sofiullah Iqbal Kiron Sofiullah-Iqbal-Kiron

View GitHub Profile
class Solution {
public:
vector<int> findAnagrams(string s, string p) {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
vector<int> ans;
vector<int> hash(26,0);
vector<int> phash(26,0);