avinash201199 / avinash201199/DSA-Questions
DSA-String-Python-Longest Common Prefix
Open
hacktoberfest
- Dominant language
- C++
- Stars
- 88
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Hey there, I'm participating in #hactoberfest2k21, Please assign me the issue. Good day!
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 "".
Example:
Input: strs = ["flower","flow","flight"]
Output: "fl"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.