Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 40121

Count the number of distinct sub-sequences of T in S

$
0
0

Given a string S and a string T, we have to count the number of distinct sub-sequences of T in S. Can anyone please explain the DP approach behind solving this problem. Here's one basic solution i found. I am unable to understand how the sub problem is chosen in this case.


Viewing all articles
Browse latest Browse all 40121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>