https://ide.codingblocks.com/s/248324(i used memoization, but not passes all test cases)
Count binary string dp
wrong answer for test case 1 and 2
@Rishabhsharm the dp array is still int, it cannot support long long values. Change datatype for all the values.
yeah , now changes dp array also .but not pass
@Rishabhsharm this is my code using memoisation, and it passed all the test cases. You can see that logic is same, only datatype is different.
thanks ,now resolves
1 Like