Longest Common Prefix at Yelp
Easy47.1% acceptance
This problem has 100.0% frequency at Yelp.
Problem Description
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 `""`.
Read full problem and hintsTopics
Also asked at 56 companies
More Yelp Questions
Two SumEasyLongest Substring Without Repeating CharactersMediumGroup AnagramsMediumMerge IntervalsMediumWord Ladder IIHard
View all Yelp questions