コード例 #1
0
        public void Problem014_Tests_1()
        {
            string[] strs = new string[] { "flower", "flow", "flight" };
            string   act  = Problem014.LongestCommonPrefix(strs);
            string   exp  = "fl";

            Assert.Equal(exp, act);
        }
コード例 #2
0
        public void Problem014_Tests_3()
        {
            string[] strs = new string[] { "cir", "car" };
            string   act  = Problem014.LongestCommonPrefix(strs);
            string   exp  = "c";

            Assert.Equal(exp, act);
        }