牛客567868013号
牛客567868013号
全部文章
题解
SQL题解(12)
归档
标签
去牛客网
登录
/
注册
牛客567868013号的博客
全部文章
/ 题解
(共18篇)
题解 | #两个链表的第一个公共结点#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # # @param pHead1 ListNode类 # @param pHead2 List...
Python3
剑指
2021-10-13
0
313
题解 | #二叉搜索树与双向链表#
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # # @param pRootOfTre...
Python3
剑指
2021-10-13
0
420
题解 | #复杂链表的复制#
# -*- coding:utf-8 -*- # class RandomListNode: # def __init__(self, x): # self.label = x # self.next = None # self.random ...
Python3
剑指
2021-10-13
1
384
题解 | #合并两个排序的链表#
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 返回合并后列表 ...
Python3
剑指
2021-10-12
0
411
题解 | #链表中倒数最后k个结点#
# class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @para...
Python3
剑指
2021-10-12
0
380
题解 | #从尾到头打印链表#
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None # # 代码中的类名、方法名、参数名已经指定,请勿修改,直接...
Python3
剑指
2021-10-12
1
297
题解 | #买卖股票的最好时机#
# # # @param prices int整型一维数组 # @return int整型 #基本思路:假设当前a最小,当遇到b(b<a)时,我们可知:若后面出现的使得利益更大的价格C #(max利润=C-a),那么C-b一定大于C-a,即后面的最大收益的比较只需要通过b来计算 #(ma...
Python3
动态规划
股票问题
2021-09-22
7
598
题解 | #反转链表#
# -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Solution: # 返回ListNo...
Python3
链表
2021-09-22
0
477
首页
上一页
1
2
下一页
末页