https://ide.codingblocks.com/s/60892
custom input gives correct ans
but test case doesnt pass
Problem title-count subsequence
Hi Atishay, consider the case when:
Input:
1
ABCABCABC
Expected Output: 326
Your output: 256
Your code is not giving the correct output, so try to improve your logic. Also, you should try to use dynamic programming for this problem.