Datawhale leetcode训练营 第五天

题目描述 方法一: 我的想法和官方解答的方法一比较像。 思路就是 我觉得这个公式讲的很好,很精髓。 这个图也很到位~ 加上我详细的代码解释简直完美 class Solution: def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str
相关文章
相关标签/搜索