public void TestMethod3() { //Arrange var s = "daacaedaceacabbaabdccdaaeaebacddadcaeaacadbceaecddecdeedcebcdacdaebccdeebcbdeaccabcecbeeaadbccbaeccbbdaeadecabbbedceaddcdeabbcdaeadcddedddcececbeeabcbecaeadddeddccbdbcdcbceabcacddbbcedebbcaccac"; var t = "ceadbaa"; var expected = 8556153; //Act var sol = new DistinctSubsequences.Solution(); var res = sol.NumDistinct(s, t); //Assert Assert.AreEqual(expected, res); }
public void TestMethod2() { //Arrange var s = "babgbag"; var t = "bag"; var expected = 5; //Act var sol = new DistinctSubsequences.Solution(); var res = sol.NumDistinct(s, t); //Assert Assert.AreEqual(expected, res); }