Longest Common Prefix at Apple
Easy47.1% acceptance
This problem has 78.5% frequency at Apple.
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 58 companies
More Apple Questions
Two SumEasyNumber of IslandsMediumMerge IntervalsMediumBest Time to Buy and Sell StockEasyDesign Hit CounterMedium
View all Apple questions