Exemple #1
0
        private static void StringTest()
        {
            StringAnagram a      = new StringAnagram();
            var           result = a.IsAnagram("post", "stop");

            WriteLine("Is Anagram: " + result);
        }
Exemple #2
0
        public void Test1()
        {
            var algo = new StringAnagram();

            var result = algo.MakeAnagram("abc", "cba");

            Assert.Equal(0, result);

            result = algo.MakeAnagram("cde", "abc");
            Assert.Equal(4, result);
        }