public void Try_AABRAACADABRAACAADABRA_AACAA_SolutionKMP_Succeed() { var str = new StrStr("AABRAACADABRAACAADABRA", "AACAA"); var result = str.SolutionKMP(); Assert.AreEqual(13, result); }
public void Try_hello_SolutionKMP_Succeed() { var str = new StrStr("hello", "ll"); var result = str.SolutionKMP(); Assert.AreEqual(2, result); }