Longest Common Prefix — October 22, 2026
Given an array of strings strs, find the longest common prefix among all strings in the array.If there is no common prefix, return an empty string "". Input: strs is an array of strings. Constraints: 1 <= strs.length <= 200 0 <= strs[i].length <= 200 strs[i] consists of only lowercase English letter
