Longest common prefix: Difference between revisions
→{{header|Vlang}}
No edit summary |
|||
Line 3,751:
{{trans|go}}
<lang vlang>// lcp finds the longest common prefix of the input strings.
fn lcp(l []string) string {
// Special cases first
|