Skip to content

Instantly share code, notes, and snippets.

View JaspreetChhabra's full-sized avatar
:atom:
Innovating

Jaspreet Chhabra JaspreetChhabra

:atom:
Innovating
  • Expedia Group Inc
  • Bangalore, India
  • 22:44 (UTC +05:30)
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);