Exemple #1
0
        public static void Test()
        {
            Solution s = new Solution();

            string[] a4 = new[] { "cba", "daf", "ghi" };
            a4.PrintList();
            Console.WriteLine(s.MinDeletionSize(a4) + " is 1");

            string[] a = new[] { "a", "b" };
            a.PrintList();
            Console.WriteLine(s.MinDeletionSize(a) + " is 0");

            string[] a2 = new[] { "zyx", "wvu", "tsr" };
            a2.PrintList();
            Console.WriteLine(s.MinDeletionSize(a2) + " is 3");
        }