示例#1
0
 public void TestMethod1()
 {
     Assert.AreEqual("fl", HorizontalScanning.LongestCommonPrefix(new string[] { "flower", "flow", "flight" }));
 }
示例#2
0
 public void TestMethod2()
 {
     Assert.AreEqual("", HorizontalScanning.LongestCommonPrefix(new string[] { "dog", "racecar", "car" }));
 }