Given an array of strings, strs, write a function to find the longest common prefix string in strs. If there is no common prefix, return an empty string, "".
Constraints:
1≤strs.length≤200
...
⋮
Problem
Submissions
Solution: Longest Common Prefix
Statement▼
Given an array of strings, strs, write a function to find the longest common prefix string in strs. If there is no common prefix, return an empty string, "".