In how many different ways can t be picked out of s as a subsequence? Go from recursion to DP to O(|t|) space.
In how many different ways can t be picked out of s as a subsequence? Go from recursion to DP to O(|t|) space.
Opens with the full question.