014. Longest Common Prefix
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Write a function to find the longest common prefix string amongst an array of strings. 找到一系列字符串的最长公共前缀。 先排序,在对比首位两个字符串。 尾字符串是*(str.end()-1),要考虑输入的集合为空。
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Write a function to find the longest common prefix string amongst an array of strings. 找到一系列字符串的最长公共前缀。 先排序,在对比首位两个字符串。 尾字符串是*(str.end()-1),要考虑输入的集合为空。