Untitled

mail@pastecode.io avatar
unknown
plain_text
15 days ago
201 B
1
Indexable
Never
Question: Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, return an empty string "".

Input: ["flower","flow","flight"]
Output: "fl"
Leave a Comment