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
spaces
头插建立单链表
#include#include#includeusingname
spaces
td;//带头指针的单链表typedefstructLNode{intdata;structLNode*next;}LNode
Cht_t
·
2023-11-15 00:23
ds
算法
数据结构
带头节点的单链表逆置
#include#include#includeusingname
spaces
td;//带头指针的单链表typedefstructLNode{intdata;structLNode*next;}LNode
Cht_t
·
2023-11-15 00:23
ds
算法
数据结构
循环双链表插入删除
#include#include#includeusingname
spaces
td;//带头指针的循环双链表typedefstructDNode{intdata;structDNode*next,*prior
Cht_t
·
2023-11-15 00:21
ds
c++
算法
开发语言
模拟散列表(hash)拉链法
#include#includeusingname
spaces
td;constintN=100003;//h存放多个字链表的头指针inth[N];//存放每个值,并且会被拆成多个数组inte[N];//
空が笑っています
·
2023-11-15 00:12
C语言
c++
dvc++
散列表
哈希算法
数据结构
哈希表(模拟散列表)
_庆哥Java的CSDN技术博客-CSDN博客题目:代码:拉链法:#include#includeusingname
spaces
td;constintN=100003;//减少冲突:数组长度一般取离2的整数幂较远的质数
会笑的小熊
·
2023-11-15 00:10
数据结构
散列表
数据结构
算法
c++
模拟散列表—哈希表—拉链法;
输入样例:5I1I2I3Q2Q5输出样例:YesNo#includeusingname
spaces
td;constintN=1e5+3;inth[N],e[N],ne[N],idx;voidinsert
ou_fan
·
2023-11-15 00:10
ou_fan的学习记录
散列表
数据结构
模拟散列表(哈希表)模板
模板题:https://www.acwing.com/problem/content/842/拉链法#include#include#includeusingname
spaces
td;constintN
B0tton
·
2023-11-15 00:39
算法笔记
散列表
图论
c++
hash——模拟散列表(拉链法和开放寻址法)
12000114000212600031代码:#include#include#include#include#includeusingname
spaces
td;constintN=2e5+3,null
北岭山脚鼠鼠
·
2023-11-15 00:09
基本数据结构
哈希算法
散列表
数据结构
哈希表 AcWing 840. 模拟散列表
AcWing840.模拟散列表算法标签哈希表思路拉链法开放寻址法代码#include#defineintlonglong#definerep(i,a,b)for(inti=a;ib;--i)usingname
spaces
td
飞滕人生TYF
·
2023-11-15 00:37
算法
散列表
数据结构
opencv分离RGB三通道
#include#include#include#include#includeusingname
spaces
td;usingnamespacecv;intR=10,G=10,B=10;staticMatframe
@java小白
·
2023-11-14 23:57
opencv
一分钟搞懂什么是this指针(未涉及静态成员和函数)
#includeusingname
spaces
td;classDate{public:Date(intyear,intmonth,intday){_year=year;_month=month;_day
小程序面包园
·
2023-11-14 23:04
C++学习
c++
算法
开发语言
c语言
【学习笔记】[EGOI2023] Bikes vs Cars
k使得bi,j#definelllonglong#definepbpush_back#definefifirst#definesesecond#defineinf0x3f3f3f3fusingname
spaces
td
仰望星空的蚂蚁
·
2023-11-14 22:06
思维
图论
构造
学习
笔记
给元素赋初值的方法总结(C++)
2.显式初始化2.1直接初始化以int类型为例,简单的赋值,没有什么好解释的#includeusingname
spaces
td;intmain(){inta=0;retu
冀行简
·
2023-11-14 21:57
c++
算法笔记-第九章-二叉树的遍历(待整理)
算法笔记-第九章-二叉树的遍历二叉树的先序遍历二叉树的中序遍历二叉树的先序遍历//二叉树的先序遍历#include#includeusingname
spaces
td;constintMAXN=50;structNode
一直爱莲子
·
2023-11-14 21:44
#
算法笔记刷题
算法
笔记
C++命名空间,函数重载
一、C++命名空间使用过C++的人都知道在引入头文件后需要加上这样一行代码usingname
spaces
td;但是对于初学者来说不仔细研究一下可能都不知道为什么需要这样一行代码,接下来将对其进行解释,引入命名空间的概念
迷梦y
·
2023-11-14 21:46
C++
c++
开发语言
c++——友元函数
#includeusingname
spaces
td;classBox{doublewidth;public:friendvoidprintWidth(Boxbox);voidsetWidth(doublewid
taojYang
·
2023-11-14 21:15
c++
友元函数
opencv遍历图像像素方法总结
#include#include#include#include#include#includeusingname
spaces
td;usingnamespacecv;Matinverse1(Mat&src
love_image_xie
·
2023-11-14 20:51
opencv学习
C++编写的多线程自动爬虫程序
以下是详细代码和步骤:#include#include#include#include#include"cheeseboy.h"usingname
spaces
td;//爬取函数voidspider
q56731523
·
2023-11-14 20:49
c++
爬虫
开发语言
kotlin
python
c语言数据结构---二叉树非递归输出
#include#include#includeusingname
spaces
td;typedefstructnode{structnode*lchild;structnode*rchild;chardata
东箭武
·
2023-11-14 20:37
c语言
数据结构
c++
c语言数据结构---三叉树
#include#include#includeusingname
spaces
td;typedefstructnode{structnode*lchild;structnode*rchild;structnode
东箭武
·
2023-11-14 20:34
c语言
数据结构
c++
leetcode1122.数组的相对排序
代码如下:#include#include#includeusingname
spaces
td;classSolution{publi
lilllll0099
·
2023-11-14 19:37
leetcode
leetcode
C++
数组排序
蓝桥杯 第 3 场算法双周赛4,7题
#includeusingname
spaces
td;
Unlimitedz
·
2023-11-14 19:37
dp
蓝桥杯
算法
蓝桥杯
顺序表插入
#include#include#includeusingname
spaces
td;#defineMaxSize10typedefstruct{intdata[MaxSize];intlength;}SeqList
Cht_t
·
2023-11-14 19:34
ds
算法
顺序表删除
#include#include#includeusingname
spaces
td;#defineMaxSize10typedefstruct{intdata[MaxSize];intlength;}SeqList
Cht_t
·
2023-11-14 19:34
算法
数据结构
顺序表查找
#include#include#includeusingname
spaces
td;#defineMaxSize10typedefstruct{intdata[MaxSize];intlength;}SeqList
Cht_t
·
2023-11-14 19:27
算法
(AtCoder Beginner Contest 328)A-F
A-NotTooHard#includeusingname
spaces
td;constintN=1e5+5;typedeflonglongll;typedefpairpll;typedefarrayp3
Unlimitedz
·
2023-11-14 19:27
算法
c++
数据结构
DAY02 c++对c的扩展
输出语法coutusingname
spaces
td;intmain(intargc,char*argv[]){cout>变量名1>>变量名2>>...示例#includeusingname
spaces
td
ZHANGα
·
2023-11-14 19:13
c++
c++
c语言
开发语言
2023NOIPA层联测12(ACCODER413)
#includeusingname
spaces
td;#definepiipair#definefifirst#definesesecondc
DeepSeaSpray
·
2023-11-14 18:50
信息学
比赛
算法
c++
题目:苹果和虫子
#includeusingname
spaces
td;intmain(){inta,b,c,d;cin>>a>>b>>c;if(a-c/b-1intmain(){inta,b,c,d;scanf("%d%
爱康代码
·
2023-11-14 17:32
基础
c++
c语言
CCF 备忘
http://118.190.20.162/home.page二、基础套路循环输入数组标记法(数组下标-数值的映射)两个矩阵相乘map>ans;for(inti=1;i#includeusingname
spaces
td
超自然祈祷
·
2023-11-14 16:51
刷题记录
益智题
c++
算法
数据结构
蓝桥杯每日一题2023.11.12
题目描述题目分析通过观察发现每一层与前一层的关系:f[i]=f[i-1]+i;#includeusingname
spaces
td;intans,d;intmain(){for(inti=1;i<=
Akct
·
2023-11-14 16:56
蓝桥杯
算法
职场和发展
蓝桥杯每日一题2023.11.13
lanqiao.cn)题目分析由于每次吹灭的蜡烛与年龄相同故我们想到使用前缀和可以让我们求出各个区间的和,我们将每个区间都枚举一遍,如果符合要求就输出区间开始的位置(答案:26)#includeusingname
spaces
td
Akct
·
2023-11-14 16:56
蓝桥杯
算法
职场和发展
蓝桥杯每日一题2023.11.14
题目描述题目分析此题目的最终目标是将字母都填上数使等式符合条件,实际我们发现可以使用搜索将所有符合条件的进行判断(答案:29)由于小数可能会出现错误故我们将其进行简单变化进行搜索#includeusingname
spaces
td
Akct
·
2023-11-14 16:24
蓝桥杯
算法
职场和发展
9-6 详解decltype含义,decltype主要用途(未归类知识点)
014decltype含义和举例_用于推导类型#include#include#includeusingname
spaces
td;classCT{public:inti;intj;};inttestFunction
昔拉天使
·
2023-11-14 15:53
C++98
11
14
17
c++11
指针
c++
9-3 理解模板类型推断、查看类型推断结果(未归类知识点)
004理解模板类型参数_查看类型推断结果#include#include#includeusingname
spaces
td;//显示参数类型,这里不研究boost库template//voidmyFunction01
昔拉天使
·
2023-11-14 15:52
C++98
11
14
17
c++
9-4 引用折叠,转发、完美转发,forward(未归类知识点)
005引用折叠规则与引用的引用#include#include#includeusingname
spaces
td;templatevoidmyFunction01(T&&tem)//T是类型模板参数,T
昔拉天使
·
2023-11-14 15:52
C++98
11
14
17
c++
9-5 理解auto类型推断,auto应用场合(未归纳知识点)
009auto类型常规推断#include#include#includeusingname
spaces
td;//显示参数类型,这里不研究boost库templatevoidmyFunction01(T
昔拉天使
·
2023-11-14 15:52
C++98
11
14
17
c++11
c++
指针
typename场合、默认模板参数、趣味写法分析
传递一个可调用类对象作为类模板参数008默认模板参数005typename的应用场合_用在模板函数类型成员前表示是一个类型#include#include#include#includeusingname
spaces
td
昔拉天使
·
2023-11-14 15:21
C++98
11
14
17
c++
9-2 万能引用universal reference(未归类知识点)
003万能引用#include#includeusingname
spaces
td;templatevoidmyFunction(constT&value)//value的类型是constT&{return
昔拉天使
·
2023-11-14 15:21
C++98
11
14
17
c++
指针
Peter算法小课堂—自定义容器
太戈编程第308题暴力法cin>>n>>m;for(inti=0;i>name[i]>>year[i];for(inti=0;i>x>>y;intOK=0;for(intj=0;jusingname
spaces
td
Peter Pan was right
·
2023-11-14 14:28
算法
数据结构
AtCoder - abc152(D,E)
res=∑1nv[e(i)][s(i)]res=\sum_{1}^{n}v[e(i)][s(i)]res=∑1nv[e(i)][s(i)]#includeusingname
spaces
td;intv[10
mldl_
·
2023-11-14 13:28
题解
c++
算法
哈希算法
2023.3.12上机练习
1.201312-1原题网址(我的80分代码)#include#includeusingname
spaces
td;intnum[10000]={0};intmain(){intn;cin>>n;intcount
肉松拿铁
·
2023-11-14 12:49
算法
c++
图论
问题 D: 过山车(二分图)
若右边端点无对象,则暂时作为该左端点的对象若右边端点有对象,递归查询其对象是否有其他选择(1.若有其他选择,选择其他,2.当前左端点作为当前右端点的对象)AC代码:#include#includeusingname
spaces
td
%d%d2
·
2023-11-14 11:16
二分图
深度优先
图论
算法
问题 F: Air Raid(最小路径覆盖(二分图))匈牙利算法,通俗讲解
而每次的连接都是向左端点对应的集合加入一个右端点例如:1和2相连,即此时有四个集合需要4个士兵故只需要求最大匹配数,即可知道最少有几个集合,即求出最少士兵数AC代码如下:#include#includeusingname
spaces
td
%d%d2
·
2023-11-14 11:46
二分图
算法
2021-10-19 AcWing 1068. 环形石子合并
#includeusingname
spaces
td;intn,m,k,T;constintN=202;inta[N>n;for(inti=1;i>a[i],a[i+n]=a[i];for(inti=1;
想出成果的acmer
·
2023-11-14 11:56
动态规划
算法
c++
Acwing 1068. 环形石子合并(区间DP)
#includeusingname
spaces
td;constintN=205,INF=0x3f3f3f
Vic.GoodLuck
·
2023-11-14 11:55
动态规划
算法
[Acwing] 1068. 环形石子合并 区间DP
我们需要合并n-1次,因此我们有n种方法进行合并,但是如果都枚举出来这n种时间复杂度是O(n4)O{(n^4)}O(n4)会TLE因此我们可以开两倍数组进行优化CODE#includeusingname
spaces
td
*DDL_GzmBlog
·
2023-11-14 11:47
#
基础动态规划
动态规划
算法
AcWing 1068 环形石子合并 题解 (动态规划—DP—区间DP)
原题传送门#includeusingname
spaces
td;constintN=410,INF=0x3f3f3f3f;intn,m;intw[N],s[N];intf[N][N],g[N][N];//
QingQingDE23
·
2023-11-14 11:17
动态规划-DP
动态规划
算法
图论
【动态规划】环形区间dp:环形石子合并
区间dp:合并果子_暮色_年华的博客-CSDN博客_合并果子dp环形区间的处理:断环为链:输入的处理:for(inti=1;i>a[i];}for(inti=n+1;i#includeusingname
spaces
td
暮色_年华
·
2023-11-14 11:46
#
动态规划
动态规划
算法
【动态规划】环形区间dp: 能量项链
、每一堆石子变为两个值,这里用结构体实现3、每一次合并多出的值由第一个区间第一个珠子的head和第二个区间第一个珠子的head和最后一个珠子的tail相乘得到(模拟)#includeusingname
spaces
td
暮色_年华
·
2023-11-14 11:16
#
动态规划
动态规划
算法
leetcode
上一页
135
136
137
138
139
140
141
142
下一页
按字母分类:
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
其他