giantye
giantye
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
giantye的博客
全部文章
(共2篇)
题解 | #最长公共前缀#
class Solution: def longestCommonPrefix(self , strs ): res = '' for items in zip(*strs): if len(set(items)) ==...
Python3
字符串
2022-06-20
0
331
题解 | #螺旋矩阵#
class Solution: def SpiralMatrix(self , matrix ): res = [] while matrix: res += matrix[0] matrix = list(zi...
Python3
2022-06-20
0
209