Untitled

Anonymous
plain_text
07/09/2024 10:36 AM
268 B
23
Indexable
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"
Editor is loading...
Leave a Comment