Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            var anagrams = WhereMyAnagramsAt.Anagrams("racer",
                                                      new List <string>
            {
                "carer", "arcre", "carre", "racrs", "racers", "arceer", "raccer", "carrer", "cerarr"
            });

            foreach (var anagram in anagrams)
            {
                Console.WriteLine(anagram);
            }

            Console.WriteLine(WeightForWeight.OrderWeight("2000 10003 1234000 44444444 9999 11 11 22 123"));

            Console.WriteLine(Calculator.LastDigit(new int[] { 3, 4, 2 }));
        }
Ejemplo n.º 2
0
        public void SampleTest()
        {
            Assert.AreEqual(new List <string> {
                "a"
            },
                            WhereMyAnagramsAt.Anagrams("a", new List <string> {
                "a", "b", "c", "d"
            }));

            Assert.AreEqual(new List <string> {
                "carer", "arcre", "carre"
            },
                            WhereMyAnagramsAt.Anagrams("racer",
                                                       new List <string>
            {
                "carer", "arcre", "carre", "racrs", "racers", "arceer", "raccer", "carrer", "cerarr"
            }));
        }