avinash201199 / avinash201199/DSA-Questions
longest common prefix
Open
hacktoberfest
- Dominant language
- C++
- Stars
- 88
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I am a participant of Hacktoberfest. I would like to add this question in strings. Kindly assign me this issue. Thank you.
Question:
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 "".
Input: strs = ["flower","flow","flight"]
Output: "fl"
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.