Qadccccc
Qadccccc
全部文章
分类
题解(12)
归档
标签
去牛客网
登录
/
注册
Qadccccc的博客
全部文章
(共121篇)
题解 | 二叉搜索树与双向链表 --leetcode LCR155
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # 题解: https://leetcode...
2025-05-24
0
2
题解 | 二叉树的最大深度-递归
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # 代码中的类名、方法名、参数名已经指定,请勿...
2025-05-24
0
40
题解 | 求二叉树的层序遍历
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # 代码中的类名、方法名、参数名已经指定,请勿...
2025-05-24
0
35
题解 | 二叉树的后序遍历-leetcode 题解
from os import NGROUPS_MAX # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = Non...
2025-05-24
0
3
题解 | 二叉树的后序遍历-递归写法
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # 代码中的类名、方法名、参数名已经指定,请勿...
2025-05-24
0
42
题解 | 二叉树的中序遍历-栈的使用
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # 代码中的类名、方法名、参数名已经指定,请勿...
2025-05-24
0
50
题解 | 盛水最多的容器
# # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param height int整型一维数组 # @return int整型 # class Solution: def maxArea(self , height: List[int]) -...
2025-05-23
0
38
题解 | 二叉树的前序遍历 -根 -左节点-右节点 递归
# class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # # 代码中的类名、方法名、参数名已经指定,请勿...
2025-05-23
0
47
题解 | 滑动窗口的最大值
import collections # 解题思路: htt****************************liding-window-maximum/description/ # 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 # # # @param ...
2025-05-22
0
3
题解 | 【模板】队列
import collections import sys # for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) def solver(): n =int(input()) ...
2025-05-19
0
47
首页
上一页
4
5
6
7
8
9
10
11
12
13
下一页
末页