Function longest_common_prefix

Source
pub fn longest_common_prefix(strs: Vec<String>) -> String
Expand description

最长公共前缀

§参数

  • strs - 输入字符串