叫什么都行呀
叫什么都行呀
全部文章
分类
归档
标签
去牛客网
登录
/
注册
叫什么都行呀的博客
全部文章
(共28篇)
题解 | #牛奶供应问题#
using System; using System.Collections.Generic; using System.Linq; class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * ...
2024-05-04
0
205
题解 | #寻找第K大#
/** * * @param a int整型一维数组 * @param aLen int a数组长度 * @param n int整型 * @param K int整型 * @return(756076230) int整型 */ int findKth(int* a, int...
2022-12-24
0
275
题解 | #输出二叉树的右视图#
class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * 求二叉树的右视图 * @param xianxu int整型vector 先序遍历 * @param zhong...
2022-11-20
0
274
题解 | #有效括号序列#
class Solution: def isValid(self , s: str) -> bool: # write code here stack=[] for i in range(0,len(s)): c=s...
2022-11-02
0
249
题解 | #包含min函数的栈#
class Solution: stack=[] def push(self, node): # write code here self.stack.append(node) def pop(self): # write co...
2022-11-02
0
288
题解 | #用两个栈实现队列#
class Solution: def __init__(self): self.stack1 = [] self.stack2 = [] def push(self, node): # write code here ...
2022-11-02
0
243
题解 | #判断是不是完全二叉树#
class Solution: def isCompleteTree(self , root: TreeNode) -> bool: # write code here list_temp2=[]#存结点 now=root ...
2022-11-02
0
219
题解 | #按之字形顺序打印二叉树#
class Solution: def Print(self , pRoot: TreeNode) -> List[List[int]]: # write code here a=0 b=0 flag=0 ...
2022-11-01
0
341
题解 | #求二叉树的层序遍历#
class Solution: def levelOrder(self , root: TreeNode) -> List[List[int]]: # write code here a=0 b=0 list_temp1=[]#存值 list_temp2=[]#存结点 List=[] now...
2022-11-01
0
234
题解 | #判断是不是二叉搜索树#
bool isValidBST(struct TreeNode* root ) { // write code here ...
C
递归
二叉搜索树
2022-10-04
3
322
首页
上一页
1
2
3
下一页
末页