public void Example4() { var sol = new PermutationInString(); Assert.IsTrue(sol.CheckInclusion("a", "a")); Assert.IsFalse(sol.CheckInclusion("a", "b")); }
public void Example3() { var sol = new PermutationInString(); Assert.IsTrue(sol.CheckInclusion("adc", "dcda")); Assert.IsFalse(sol.CheckInclusion("adc", "dcdx")); }
public bool PermutationInString(string s1, string s2) { var solver = new PermutationInString(); return(solver.Solution(s1, s2)); }
public void BeforeEach() { PermutationInString = new PermutationInString(); }
public void Example1() { var sol = new PermutationInString(); Assert.IsTrue(sol.CheckInclusion("ab", "eidbaooo")); }
public void Example2() { var sol = new PermutationInString(); Assert.IsFalse(sol.CheckInclusion("ab", "eidboaoo")); }