Datawhale leetcode訓練營 第五天

題目描述 方法一: 我的想法和官方解答的方法一比較像。 思路就是 我覺得這個公式講的很好,很精髓。 這個圖也很到位~ 加上我詳細的代碼解釋簡直完美 class Solution: def longestCommonPrefix(self, strs): """ :type strs: List[str] :rtype: str
相關文章
相關標籤/搜索