Longest Common Prefix at Microsoft
Easy47.1% acceptance
This problem has 75.0% frequency at Microsoft.
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 Microsoft Questions
Two SumEasyLongest Substring Without Repeating CharactersMediumMedian of Two Sorted ArraysHardLongest Palindromic SubstringMediumContainer With Most WaterMedium
View all Microsoft questions