giantye
giantye
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
giantye的博客
全部文章
(共5篇)
题解 | #字符串加密#
while True: try: key = input().strip()  ...
字符串匹配
哈希表
2022-06-26
0
120
题解 | #扑克牌大小#
A,B = input().strip().split('-') a = A.split(' ') b = B.split(' ') dic = dict() arr = '3&n...
哈希表
2022-06-26
0
177
题解 | #最长公共前缀#
class Solution: def longestCommonPrefix(self , strs ): res = '' for items in zip(*strs): if len(set(items)) ==...
Python3
字符串
2022-06-20
0
326
题解 | #螺旋矩阵#
class Solution: def SpiralMatrix(self , matrix ): res = [] while matrix: res += matrix[0] matrix = list(zi...
Python3
2022-06-20
0
209
题解 | #寻找奇数#
n = int(input()) arr = list(map(int,input().strip().split())) arr.sort() tag = True for i in range(1,len(...
2021-08-13
0
363