Find the longest common prefix of a list of strings.
MediumProblem Statement
Find the longest common prefix of a list of strings.
Sample Input
['flower', 'flow', 'flight']
Sample Output
fl
Limits
Time: 2s · Memory: 256 MB
Find the longest common prefix of a list of strings.
['flower', 'flow', 'flight']
fl
Time: 2s · Memory: 256 MB