牛客670572580号
牛客670572580号
全部文章
题解
归档
标签
去牛客网
登录
/
注册
牛客670572580号的博客
全部文章
/ 题解
(共3篇)
题解 | #判断一个链表是否为回文结构#
# # return topK string # @param strings string字符串一维数组 strings # @param k int整型 the k # @return string字符串二维数组 # class Solution: def topKstrings(sel...
Python3
2021-09-20
4
431
题解 | #子数组的最大累加和问题#
class Solution: def addInList(self , head1 , head2 ): # write code here sum1='' sum2='' while head1 is not None: ...
2021-07-07
0
312
题解 | #最长无重复子数组#
利用数组的切片利用数组相加1.遍历列表中的元素,不是按下标遍历。是按元素遍历2.把不重复的数放到s列表中,遇到重复。就判断s的长度和原来长度,得到最大长度。重复s为重复元素后面的元素组合length=0res=[]p=[]for i in arr: if i not in res: ...
2021-07-06
0
302