Practice Problem

Distinct Subsequences

Difficulty: Hard

Given two strings s and t, return the number of distinct subsequences of s which equals t.