problem : link
code : link
My approach is also the same as mentioned in the editorial but I am getting wrong answer.
Instead of using two separate memoisation table for true and false I am using only one dp
dp[i][j][w] = the number of ways to put parenthesis such that the result is w
where w is 1 for true and 0 for false;
Can someone tell me where am I wrong
move your ass and find a counter example