Function terminal_cli::longest_common_prefix
[−]
[src]
pub fn longest_common_prefix(strings: &[&str]) -> Option<String>
A naive implementation. Can be implemented with a trie, but it's overkill here. http://en.wikipedia.org/wiki/LCP_array