E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
intval
Leetcode百题斩-二叉树
publicclassTreeNode{
intval
;TreeNodeleft;TreeNoderight;TreeNode(){}TreeNode(
intval
){this.val=val;}TreeNode
Owen_Q
·
2025-06-29 00:32
递归
搜索
水题
leetcode
算法
职场和发展
代码随想录day16二叉树4
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),lef
皮蛋瘦肉粥_121
·
2025-06-27 07:22
二叉树
数据结构
代码随想录day15二叉树3
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nul
皮蛋瘦肉粥_121
·
2025-06-27 07:14
二叉树
C++ 不同线程之间传值
不同线程之间传值,常见有以下五种安全可靠的方式,避免用全局变量裸暴露:①通过线程函数参数传值(最基本)#include#includevoidthreadFunc(
intval
){std::cout#includevoidthreadFunc
W1E
·
2025-06-24 22:08
C++学习笔记
c++
算法
开发语言
leetcode:129. 求根节点到叶节点数字之和
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nullptr
呆呆的小鳄鱼
·
2025-06-23 12:47
#
递归
#
深搜
leetcode
算法
职场和发展
(LeetCode 面试经典 150 题 ) 27. 移除元素 (双指针)
C++版本:classSolution{public:intremoveElement(vector&nums,
intval
){inti=0,j=nums.size()-1;while(i<=j){if
岁忧
·
2025-06-19 20:56
C++
JAVA
Go版本
LeetCode
LeetCode
面试经典
150
题
leetcode
面试
算法
java
go
c++
148.排序链表
*structListNode{*
intval
;*ListNode*next;*ListNode(intx):val(x),ne
张荣华_csdn
·
2025-06-19 13:07
leetcode中国
148.排序链表
leetcode中国
Leetcode百题斩-链表
/*AuthorOwen_Q*/publicclassListNode{
intval
;ListNodenext;ListNode(){}ListNode(
intval
){this.val=v
Owen_Q
·
2025-06-18 22:21
递归
链表
数组
leetcode
链表
算法
二叉树的最大深度题解
*structTreeNode{*
intval
;*structTreeNode
积极向上的向日葵
·
2025-06-17 20:31
数据结构
算法
二叉树
leetcode 226.翻转二叉树
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(){}*TreeNode(
intval
){this.val=val
是小Y啦
·
2025-06-14 06:28
leetcode
算法
职场和发展
二叉树
最深叶节点的公共祖先
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nullptr
xuanwojiuxin
·
2025-06-11 16:37
算法
【2024蓝桥杯/C++/A组/艺术与篮球】
代码:#includeusingnamespacestd;intmonth[]={0,31,28,31,30,31,30,31,31,30,31,30,31};
intval
[]={13,1,2,3,5,4,4,2,2,2
Kent_J_Truman
·
2025-06-10 14:58
蓝桥杯
算法
算法
蓝桥杯
代码随想录day3|203,206,707,142
*structListNode{*
intval
;*ListNode*next;*ListNode():val(0),next(nullptr){}*ListNode(intx):val(x),next(
qq_19555169
·
2025-06-07 14:45
算法
leetcode 108. Convert Sorted Array to Binary Search Tree和1382. Balance a Binary Search Tree
*structTreeNode{*
intval
;
洞阳
·
2025-06-07 07:57
leetcode
分治
数据结构与算法
leetcode
分治法
平衡二叉树
C++ list代码练习、set基础概念、set对象创建、set大小操作
*structListNode{*
intval
;*ListNode*next;*ListNode():val(0),next(nullptr){}*ListNode(intx):val(x),next(
qq_43355454
·
2025-06-03 19:24
c++
list
开发语言
day17 leetcode-hot100-33(链表12)ps:归并排序,记得补全
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.v
苏荷水
·
2025-06-03 00:10
leetcode
链表
算法
day17 leetcode-hot100-34(链表13)
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.val=val;}*L
苏荷水
·
2025-06-03 00:04
leetcode
链表
算法
【C++】每日一练(相同的树)
*structTreeNode{*
intval
;*structTreeNode*left;*structTreeNode*right;*};*/boolisSameTree(structTreeNode
橘颂TA
·
2025-06-01 06:01
每日一练
c++
算法
数据结构
day14 leetcode-hot100-27(链表6)
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
苏荷水
·
2025-05-31 17:02
leetcode
链表
算法
力扣面试150题--二叉树的最近公共祖先
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(intx){val=x;}*}*/classSolution{publicListhou
蒟蒻小袁
·
2025-05-29 07:36
leetcode
面试
深度优先
二叉树结构与遍历
C语言中的节点定义如下:typedefstructBinTreeNode{structBinTreeNode*left;//左子节点structBinTreeNode*right;//右子节点
intval
多吃蔬菜!!!
·
2025-05-25 04:41
好好学sei
数据结构
算法
leetcode hot100刷题日记——14.二叉树的最大深度
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nullptr
姬公子521
·
2025-05-25 01:22
力扣刷题专栏
leetcode
算法
职场和发展
【代码随想录37期】Day15 层序遍历、翻转二叉树、对称二叉树
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right
FangYwang
·
2025-05-24 18:11
C++
leetcode
基础练习
算法
c++
数据结构
学习
笔记
leetcode 61. Rotate List和86. Partition List
*structListNode{*
intval
;*ListNode*next;*ListNode():val(0),next(nullptr){}*ListNode(intx):val(x),next(
洞阳
·
2025-05-24 11:52
leetcode
链表操作
leetcode
链表
力扣HOT100之二叉树:199. 二叉树的右视图
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),le
编程绿豆侠
·
2025-05-23 12:40
力扣HOT100
leetcode
算法
职场和发展
117.填充每个节点的下一个右侧结点指针Ⅱ
1.题目描述给定一个二叉树:structNode{
intval
;Node*left;Node*right;Node*next;}填充它的每个next指针,让这个指针指向其下一个右侧节点。
此去经年ToT
·
2025-05-22 19:51
算法刷题
算法
数据结构
leetcode
c++中for_each用法简单概述
c++中for_each用法核心部分:vector容器中for_each遍历算法:for_each(v.begin(),v.end(),MyPrint);voidMyPrint(
intval
){cout
kaiaaaa
·
2025-05-21 11:46
c++
分隔链表(中等)
*publicclassListNode{*
intval
;*ListNodenext;*ListNode()
福居路冥想的草莓
·
2025-05-17 14:21
链表
数据结构
从前序与中序遍历序列构造二叉树(中等)
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(){}*TreeNode
福居路冥想的草莓
·
2025-05-17 14:49
算法
数据结构
LeetCode 155. 最小栈(Min Stack)
voidpush(
intval
)将元素val推入堆栈。voidpop()删除堆栈顶部的元素。inttop()获取堆栈顶部的元素。intgetMin()获取堆栈中的最小元素。
算法_小学生
·
2025-05-17 12:34
数据结构
LeetCode:236、二叉树的最近公共祖先
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(intx){val=x;}*}*/classSolution{publicTreeNodelowestCommonAncestor
袁气满满~_~
·
2025-05-16 18:04
LeetCode
算法
数据结构
编程日志5.8
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nullptr
牛牛程序员成长日记
·
2025-05-16 07:10
算法
leetcode
算法从0到1,Day 13二叉树part 01
publicclassTreeNode{privateintval;privateTreeNodeleft;privateTreeNoderight;publicTreeNode(){}publicTreeNode(
intval
天路客Jones_Chen
·
2025-05-15 16:54
算法基础之路
算法
java
数据结构
编程日志5.6
*structTreeNode{*
intval
;*TreeNode*left;*TreeNode*right;*TreeNode():val(0),left(nullptr),right(nullptr
牛牛程序员成长日记
·
2025-05-15 00:08
算法
c++
数据结构
算法 - 常用模板(一)(Java)
*publicclassListNode{*
intval
;*
zhaozll
·
2025-05-14 22:52
算法专栏
算法
java
leetcode
算法模板(JAVA)
算法模板二分搜索模板intbinarySearch(int[]nums,
intval
){intn=nums.length;intleft=-1,right=n;while(left+1!
Ssp-1
·
2025-05-14 22:51
算法
驱动开发学习20250513
为了分解和统一内核开发人员访问SPI/I2C设备的方式structregmap_config{constchar*name;intreg_bits;//寄存器地址位数,必填intreg_stride;intpad_bits;
intval
_bits
打倒焦虑
·
2025-05-13 22:10
驱动开发
力扣面试150题--对称二叉树
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(){}*TreeNode(
intval
){this.val=val
蒟蒻小袁
·
2025-05-12 02:20
leetcode
算法
链表OJ2——链表的中间结点(c语言实现)
structListNode{
intval
;structListNode*next;};structListNode*mi
掘根
·
2025-05-09 07:32
数据结构初阶
链表
数据结构
2025年- H26-Lc134- 226. 翻转二叉树(树)---java版
3.代码实现classTreeNode{
intval
;TreeNodeleft;TreeNoderight;TreeNode()
豆包版:每天进步一点点
·
2025-05-09 02:02
leetcode
java
java
开发语言
单链表(single linked list)
/*单链表(singlelinkedlist)*/#include#include#includestructnode/*结点结构的描述*/{
intval
;structnode*next;};structnode
碰碰狗
·
2025-05-08 20:27
数据结构(C语言描述)
链表
list
数据结构
c语言
【leetcode刷题日记】lc.155-最小栈
voidpush(
intval
)将元素val推入堆栈。voidpop()删除堆栈顶部的元素。inttop()获取堆栈顶部的元素。intgetMin()获取堆栈中的最小元素。
fearless9527
·
2025-05-08 17:32
leetcode
算法
2025年- H25-Lc133- 104. 二叉树的最大深度(树)---java版
3.代码实现classTreeNode{
intval
;TreeNodeleft;TreeNoderight;TreeNode(){}TreeNode(
intval
){this.val=val;}TreeNode
豆包版:每天进步一点点
·
2025-05-06 15:59
java
leetcode
java
开发语言
力扣面试150题-- 翻转二叉树
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(){}*TreeNode(
intval
){this.val=val
蒟蒻小袁
·
2025-05-06 07:31
leetcode
面试
算法
leetcode 707. 设计链表
题目描述代码:classMyLinkedList{structListNode{
intval
{0};ListNode*next{nullptr};ListNode(intv,ListNode*ne):val
洞阳
·
2025-05-06 04:45
leetcode
链表操作
leetcode
链表
一小时算法
importjava.util.Arrays;importjava.util.List;importjava.util.stream.Collectors;publicclasstest_05_02{classListNode{
intval
新生农民
·
2025-05-05 12:00
spring
数据结构6 · BinaryTree二叉树模板
postOrder:递归后续遍历6:levelOrder:BFS层序遍历7:mergeTrees:合并树8:getRoot:获取根节点#includeusingnamespacestd;structTreeNode{
intval
Le_ee
·
2025-05-04 06:48
数据结构
算法
c++
Day4 链表part01 Leetcode 203.移除链表
直接使用原来链表进行删除操作,完整代码如下:classSolution{public:ListNode*removeElements(ListNode*head,
intval
){//直接进行使用原来链表进行操作
pleiades qi
·
2025-05-03 21:19
Leetcode
leetcode
链表
算法
算法day3 链表(Leetcode203.移除链表元素,Leercode206.反转链表,Leetcode707.设计链表)
虚拟头节点使用虚拟头节点可以让头节点的删除和其他节点删除的方式一样C++代码:classSolution{public:ListNode*removeElements(ListNode*head,
intval
6iove.
·
2025-05-03 21:49
算法
链表
数据结构
LeetCode算法题 (最小栈)Day10!!!C/C++
voidpush(
intval
)将元素val推入堆栈。voidpop()删除堆栈顶部的元素。inttop()获取堆栈顶部的元素。intgetMin(
我是一只鱼0223
·
2025-05-03 21:46
leetcode
算法
职场和发展
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他