Easy
006Longest Common Prefix
Given an array of strings, return the longest prefix shared by every string. Return an empty string if none exists.
EXAMPLES
Example 1
Input
{
"strs": [
"flower",
"flow",
"flight"
]
}
Output
"fl"FUNCTION SHAPE
strs: stringArray→string