旧岛
旧岛
全部文章
题解
归档
标签
去牛客网
登录
/
注册
旧岛的博客
全部文章
/ 题解
(共4篇)
题解 | #链表的奇偶重排#
class Solution: def maxInWindows(self, num, size): # write code here res = [] length = len(num) if size>length ...
2021-07-09
1
503
题解 | #链表的奇偶重排#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # # @param head ListNode类 # @param m int整型 # @p...
2021-07-09
1
547
题解 | #链表的奇偶重排#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @para...
2021-07-09
1
511
题解 | #在两个长度相等的排序数组中找到上中位数#
write code here class Solution: def findMedianinTwoSortedAray(self , arr1 , arr2 ): for i in arr2: arr1.append(i) arr1.sort() leng...
2021-07-07
2
474