You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//For * take 2 cases, one when it is Empty string followed by reducing pattern pointer by 1, and other when replaced by *char i.e. for b in String, we can replace with *b so that pointer in pattern remains at * after cancelling out from String
class Solution {
public:
bool solve(string& str, string& pattern, int i, int j, vector<vector<int> >& dp) {