ZeroKore
ZeroKore
全部文章
题解
DataBase(2)
JMeter(7)
Linux&shell(4)
TrainCode(12)
大数据系列(1)
性能测试(1)
未归档(3)
归档
标签
去牛客网
登录
/
注册
Exploring Blog
构建测试知识体系
全部文章
/ 题解
(共8篇)
题解 | #最长公共前缀#
# # # @param strs string字符串一维数组 # @return string字符串 # class Solution: def longestCommonPrefix(self, strs): if not strs: return "" ...
Python3
2021-10-06
0
325
题解 | #第一个只出现一次的字符#
# -*- coding:utf-8 -*- class Solution: def FirstNotRepeatingChar(self, s): # write code here id=0 flag =True for i...
Python3
2021-10-05
0
257
题解 | #数字在升序数组中出现的次数#
# -*- coding:utf-8 -*- class Solution: def GetNumberOfK(self, data, k): # write code here dict1={} for i in set(data): ...
Python3
2021-10-05
0
358
题解 | #数组中出现次数超过一半的数字#
# -*- coding:utf-8 -*- class Solution: def MoreThanHalfNum_Solution(self, numbers): # write code here for i in set(number...
Python3
2021-10-05
0
254
题解 | #二分查找-II#
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # 如果目标值存在返回下标,否则返回 -1 # @param nums int整型一维数组 # @param target int整型 # @return int整型 # class Solution: ...
Python3
2021-10-04
0
231
题解 | #两数之和#
# # # @param numbers int整型一维数组 # @param target int整型 # @return int整型一维数组 # # # # @param numbers int整型一维数组 # @param target int整型 # @return int整型一...
Python3
2021-10-03
0
303
题解 | #缺失数字#
class Solution: def solve(self, a): flag = True for i in range(len(a) - 1): if a[i + 1] - a[i] != 1: f...
Python3
2021-10-01
0
233
题解 | #括号序列#
# # # @param s string字符串 # @return bool布尔型 # class Solution: def isValid(self , s ): # write code here stack = [ ] if l...
Python3
2021-09-17
1
316