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—94.二叉树的中序遍历【简单】
*structTreeNode{*
intval
;*structTreeNode*left;*structTreeNode*right;*};*//***Note:Thereturnedarraymustbemalloced
源代码•宸
·
2023-11-25 15:09
LeetCode刷题
leetcode
深度优先
算法
经验分享
c语言
c++
Leetcode—1457.二叉树中的伪回文路径【中等】
*structTreeNode{*
intval
;*structTreeNode*left;*structTreeNode*right;*};*/intrecord[10]={0};intaccumulate
源代码•宸
·
2023-11-25 14:30
LeetCode刷题
leetcode
算法
职场和发展
C语言
经验分享
树
深度优先遍历
【数据结构】树如何定义 | 如何存储 | 实际应用
structTreeNode{
intval
;structTreeNode*child1;structTreeNode*child2;structTreeNode*child3;//...
安心学编程
·
2023-11-25 12:05
学习资源
数据结构
数据结构
微擎微信公众号授权登录反复登录跳转修复
并且特别是电脑端打开都会弹出授权弹窗通过修改framework/model/mc.mod.phpmc_oauth_account_userinfo函数,以下片段if(
intval
($_W['account
达_c74c
·
2023-11-25 10:22
leetcode:138. 复制带随机指针的链表
题目来源leetcode:138.复制带随机指针的链表题目描述classNode{public:
intval
;Node*next;Node*random;Node(int_val){val=_val;next
OceanStar的学习笔记
·
2023-11-25 10:03
算法与数据结构
链表
leetcode
数据结构
LeetCode:随机链表的复制
*structNode{*
intval
;*s
ACodeW
·
2023-11-25 10:28
leetcode
链表
算法
链表oj题
1.反转链表倒指针的导向2.链表的中间结点3.移除链表元素structListNode*removeElements(structListNode*head,
intval
){structListNode
徐凤年lll
·
2023-11-25 09:03
面试题
链表
数据结构
C++ Primer 10 泛型算法
intval
=42;//将查找的值//如果在vec中找到想要的元素,则返回结果指向它,否则返回结果为vec.cend()autoresult=
yuyuyuj1e
·
2023-11-24 08:31
C++
Primer
c++
leetcode 23:合并k个有序链表
*structListNode{*
intval
;*ListNode*next;*ListNode(intx):val
期待┌;崛起、~~
·
2023-11-24 08:50
leetcode
C++
算法
链表
c++ 谓词
1.一元谓词#include#include#includeusingnamespacestd;classCreaterFive{public:booloperator()(
intval
){returnval
访风景于崇阿
·
2023-11-24 03:38
c++
c++
代码随想录-刷题第三天
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.val=val;}*List
涛声依旧9087
·
2023-11-23 22:40
数据结构
算法
java
链表
每天一道LeetCode——移除元素
题目链接——移除元素intremoveElement(int*nums,intnumsSize,
intval
){int*p1=nums;int*p2=nums;inti=0;intj=0;while(i
热爱编程的小刘
·
2023-11-23 19:03
LeetCode
leetcode
算法
数据结构
开发语言
Leetcode——移除元素
方法:intremoveElement(int*nums,intnumsSize,
intval
){intslow=0,fast=0;while(fast
wyq_ustc
·
2023-11-23 19:57
Leetcode
leetcode
算法
树
traverse(root.right)//后序遍历}1.二叉树的遍历(递归和非递归实现复习)前序遍历先复习递归方法(模板)publicclassCode144{publicclassTreeNode{
intval
肝点啥_董晓宁
·
2023-11-23 11:12
112.路径总和
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(intx){val=x;}*}*/classSoluti
皮蛋豆腐酱油
·
2023-11-23 06:29
将字符串 "1,3" 转换为数字数组
$input="1,3";//输入的字符串$numbers=array_map('
intval
',explode(',',$input));array_map函数结合
intval
函数来将每个子字符串转换为整数
zlchen
·
2023-11-23 06:19
反转链表(LeetCode 206. Reverse Linked List)
//#includeusingnamespacestd;//*Definitionforsingly-linkedlist.structListNode{
intval
;ListNode*next;Lis
YaMiwan
·
2023-11-23 05:31
链表
c++
leetcode
算法
数据结构
LeetCode|C++|206. Reverse Linked List
基本思路:遍历链表,不断把节点摘下来插到链表头部,记得不要断链structListNode{
intval
;ListNode*next;ListNode(intx):val(x),next(NULL){}
ClaraR
·
2023-11-23 05:31
leetcode
c++
leetcode
c++
【leetcode 链表】206. Reverse Linked List C++
*structListNode{*
intval
;*ListNode*next;*ListNode(intx):val(x),next(NULL){}*};*/classSolution{public:ListNode
笨比master
·
2023-11-23 05:30
leetcode
链表
算法
leetcode
LeetCode 206.Reverse Linked List (反转链表)
*structListNode{*
intval
;*ListNode*next;*ListNode(intx):val(x),next(NULL){}*};
amoscykl
·
2023-11-23 05:29
Leetcode
Leetcode
(C++解题报告)
LeetCode
206
Reverse
Linked
List
反转链表
LeetCode 206. Reverse Linked List(C++版)
*structListNode{*
intval
;*ListNode*next;*ListNode(intx):val(x),next(NULL){}*};*/classSolution{public:ListNode
海阔天空sky1992
·
2023-11-23 05:28
leetcode
反转单链表
C++之谓词
includeusingnamespacestd;#include#include//仿函数返回值类型是boo1数据类型,称为谓词//一元谓词classGreaterFive{public:booloperator()(
intval
傻童:CPU
·
2023-11-23 01:16
C++
c++
开发语言
C++之常用的排序算法
C++之常用的排序算法sort#includeusingnamespacestd;#include#include#includevoidMyptint(
intval
){coutv;v.push_back
傻童:CPU
·
2023-11-23 01:12
C++
c++
排序算法
开发语言
最小生成树算法——kruskal和prim算法的c++实现
那么实现这个算法我们得先实现优先级队列每次挑选最小的边,若边两端的点不在一个集合,就说明这是最小生成树的一条边故我们还需要实现并查集来看代码图的定义:classEdge;classNode{public:
intval
Aaaverage JOE
·
2023-11-22 22:47
数据结构代码
算法
c++
02 链表-常见题型及思路总结
链表的初始化publicclassListNode{//结点的值
intval
;//下一个结点ListNodenext;//节
Fantastic Nana
·
2023-11-22 21:02
链表
数据结构
java
leetcode
leetcode真题——数组汇总: 27. 移除元素 977. 有序数组的平方 209. 长度最小的子数组 59. 螺旋矩阵 II
remove-element/快慢指针,慢指针指向当前数组元素,快指针指找非val的元素给nums[slow]赋值classSolution{public:intremoveElement(vector&nums,
intval
Nefu_lyh
·
2023-11-22 13:28
算法面试题
面试
c++
数据结构
19.删除链表倒数第N个节点
单链表定义如下:/***publicclassListNode{*
intval
;*ListNodenext;*ListNode(intx){val=x;}*}*/解法一:遍历整个链表,获得
baburwang
·
2023-11-22 08:37
算法
LeetCode
删除链表倒数第N个节点
19. 删除链表的倒数第 N 个结点
*structListNode{*
intval
;*ListNode*next;*ListNode():val(0)
whnini
·
2023-11-22 08:01
19.删除链表的倒数第 N 个节点
*structListNode{*
intval
;*ListNode*next;
十年一觉尘与土
·
2023-11-22 08:50
#
C++
LeetCode
C++
Leetcode-98:验证二叉搜索树
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderight;*TreeNode(intx){val=x;}*}*/classSolution{doublepre
小北觅
·
2023-11-22 06:05
【LeetCode刷题-链表】--23.合并K个升序链表
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.va
小d<>
·
2023-11-22 00:44
#
链表
leetcode
算法
《LeetCode力扣练习》代码随想录——链表(链表相交---Java)
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(intx){*val=x;*next=null;*}*}*/publicclassSolution
XRT_knives
·
2023-11-21 22:51
LeetCode
leetcode
链表
java
《LeetCode力扣练习》代码随想录——链表(删除链表的倒数第N个节点---Java)
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.val=val;}*List
XRT_knives
·
2023-11-21 22:20
LeetCode
leetcode
链表
java
《LeetCode力扣练习》代码随想录——链表(环形链表II---Java)
*classListNode{*
intval
;*ListNodenext;*ListNode(intx){*val=x;*next=null;*}*}*/publicclassSolution{publicL
XRT_knives
·
2023-11-21 22:45
LeetCode
leetcode
链表
java
代码随想录 10.13 || 二叉树 LeetCode 235.二叉搜索树的最近公共祖先、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点
structTreeNode{
intval
;TreeNode*left;TreeNode*right;TreeNode():val(0),left(nullptr),right(nullptre){}TreeNode
鱼Sun
·
2023-11-21 21:58
leetcode
算法
数据结构
Leetcode-025-Reverse Nodes in k-Group
*structListNode{*
intval
;*ListNode*nex
单调不减
·
2023-11-21 21:50
C语言十进制转任意进制数
废话不多说直接上代码:#includevoidtansfer(
intval
,intn)//十进制数val转n进制{if(val==0)return;tansfer(val/n,n);printf("%d
学个锤子计算机
·
2023-11-21 15:35
c语言
开发语言
leetcode141.环形链表
*classListNode{*
intval
;*ListNodenext;*ListNode(intx){*val=x;*next=null;*}*}*/publicclassSolution{publicbooleanhasCycle
憨憨二师兄
·
2023-11-21 11:16
计算机网络面试之-(数据链路层、物理层)工作原理
题解|#牛牛的链表添加节点##includetypedefstructNode{
intval
;structNode*next;}蔚来日常实习求OC求OC求OC题解|#KiKi定义电子日历类##includetypedefstructdate
愤怒的小青春
·
2023-11-21 08:02
java
力扣 2. 两数相加
*publicclassListNode{*
intval
;*ListNodenext;*ListNode(){}*ListNode(
intval
){this.val=val;}*ListNode(
intval
小和尚敲木头
·
2023-11-21 07:30
java
leetcode
Leetcode—142.环形链表II【中等】
*structListNode{*
intval
;*structListNode*next;*};*/structListNode*detectCycle(structListNode*head){structListNode
源代码•宸
·
2023-11-21 07:56
LeetCode刷题
leetcode
链表
c语言
经验分享
算法
剑指offer 反转链表
题解1:递归/***structListNode{*
intval
;*structListNode*next;*ListNode(intx):val(x),next(nullptr){}*};*/classSolution
赵振通
·
2023-11-21 04:23
链表
数据结构
剑指offer 链表中倒数最后k个节点
题解一:快慢指针代码实现:/***structListNode{*
intval
;*structListNode*next;*ListNode(intx):val(x),next(nullptr){}*}
赵振通
·
2023-11-21 04:53
链表
数据结构
剑指offer 删除链表的结点
题解一:双指针ListNode*deleteNode(ListNode*head,
intval
){//writecodehereListNode*Head=newListNode(0);Head->next
赵振通
·
2023-11-21 04:22
剑指offer题解
链表
数据结构
力扣labuladong——一刷day42
*publicclassTreeNode{*
intval
;*TreeNodeleft;*TreeNoderigh
乱世在摸鱼
·
2023-11-20 21:16
力扣题解
leetcode
算法
职场和发展
数据结构
java
力扣链表面试题---给定一个带有头结点 head 的非空单链表,返回链表的中间结点。如果有两个中间结点,则返回第二个中间结点
*publicclassListNode{*
intval
;*ListNodenext;*ListNod
-Coche-
·
2023-11-20 18:12
数据结构
指针
链表
单链表
java
算法
力扣【21】合并两个有序链表
classListNode{
intval
我还年轻呀
·
2023-11-20 12:53
LeetCode
递归
牛客在线编程101-13 判断一个链表是否为回文结构
*;/**publicclassListNode{*
intval
;*ListNodenext=null;*}*/publicclas
青铜爱码士
·
2023-11-20 10:16
java
java
代码随想录算法训练营第四天【链表part02】 | 24. 两两交换链表中的节点、19. 删除链表的倒数第N个节点 、面试题 02.07. 链表相交、142. 环形链表II
*structListNode{*
intval
;*ListNode*next;*ListNode():val(0),next(nullptr){}*ListNode(intx):val(x),next(
Mako5455
·
2023-11-20 07:10
算法训练
算法
链表
面试
两个链表的第一个公共结点
时间限制:1秒空间限制:32768K/*publicclassListNode{
intval
;ListNodenext=null;ListNode(
intval
){this.val=val;}}*/解体思路
晨微雨梦宿雨飞
·
2023-11-20 07:08
上一页
14
15
16
17
18
19
20
21
下一页
按字母分类:
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
其他