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
solution
代码随想录算法训练营Day7|454.四数相加II、383. 赎金信、15. 三数之和、18. 四数之和
LeetCode:454.四数相加IIC++实现class
Solution
{public:intfourSumCount(vector&nums1,vector&nums2,vector&nums3,vector
Magical_Jason
·
2024-02-01 23:50
算法训练
算法
力扣461. 汉明距离(位运算)
题目描述思路Problem:力扣191.位1的个数(位运算)该题只需要在上题的基础上先对两个数进行一次异或操作即可复杂度时间复杂度:O(1)O(1)O(1)空间复杂度:O(1)O(1)O(1)Codeclass
Solution
LNsupermali
·
2024-02-01 23:19
力扣题目
leetcode
算法
职场和发展
3019. 按键变更的次数
代码:class
Solution
{public:intcount
fchampion
·
2024-02-01 23:48
leetcode
c++
算法
双非本科准备秋招(12.2)—— 力扣栈与队列
class
Solution
{publicList>levelOrder(TreeNoderoot){LinkedBlockingQueueq=newLinkedBlockingQueue>list=newArrayListL
随心自风流
·
2024-02-01 22:51
leetcode
算法
求职招聘
leetcode7.整数反转
class
Solution
:defreverse(self,x:int)->int:if
朱小小小虓
·
2024-02-01 21:23
力扣242-有效的字母异位词
有效字母的异位词题目链接解题思路:遍历两个字符串,统计每个字符串出现的字数遍历两个字符串,比较两个字符串中某个字符出现的次数是否相等class
Solution
{public:boolisAnagram(
༺❀ൢ望༒月❀ൢ❀
·
2024-02-01 21:02
算法-每日一练
leetcode
链表
算法
力扣349-两个数组的交集
两个数组的交集题目链接解题思路使用一个set存储nums1遍历nums2,看看是否在set中如果在,保存该值,并且将该值从set中删除class
Solution
{public:vectorintersection
༺❀ൢ望༒月❀ൢ❀
·
2024-02-01 21:02
算法-每日一练
leetcode
算法
职场和发展
代码随想录算法训练营第九天|28.找出字符串中第一个匹配项的下标、459.重复的子字符串
class
Solution
{public:intstrStr(stringhaystack,
y_wang09
·
2024-02-01 20:48
算法
代码随想录算法训练营第二十天|654.最大二叉树、617.合并二叉树、700.二叉树搜索树中的搜索、98.验证二叉搜索树
class
Solution
{public:intmymax(vectornums){intresult=INT_MIN;for(autoi=nums.begin();i!
y_wang09
·
2024-02-01 20:48
算法
代码随想录算法训练营第二十一天|530.二叉搜索树的最小绝对差、501.二叉搜索树中的众数、236.二叉树的最近公共祖先
:class
Solution
{public:vectorresult;voidinorder(TreeNode*node){if
y_wang09
·
2024-02-01 20:48
算法
哈希算法
代码随想录算法训练营第二十三天|669.修剪二叉树、108.将有序数组转换为二叉搜索树、538.把二叉搜索树转换为累加树
669.修剪二叉树class
Solution
{public:TreeNode*trimBST(TreeNode*root,intlow,inthigh){if(root==nullptr)returnroot
y_wang09
·
2024-02-01 20:48
算法
代码随想录算法训练营第二十二天|235.二叉搜索树的最近公共祖先、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点
时间复杂度:O(n)空间复杂度:O(n)class
Solution
{public:Tre
y_wang09
·
2024-02-01 20:14
算法
数据结构
代码随想录 Leetcode77.组合
题目:代码(首刷看解析2024年2月1日):class
Solution
{public:vector>res;vectorpath;voidbacktracing(intn,intk,intstartIndex
meeiuliuus
·
2024-02-01 20:25
#
leetcode
---medium
前端
算法
javascript
代码随想录 Leetcode39. 组合总和
题目:代码(首刷自解2024年2月1日):class
Solution
{public:vector>res;vectorpath;voidbacktracking(vector&candidates,inttarget
meeiuliuus
·
2024-02-01 20:25
#
leetcode
---medium
前端
算法
javascript
代码随想录 Leetcode40.组合总和 II
题目:代码(首刷看解析2024年2月1日):class
Solution
{public:vector>res;vectorpath;voidbacktracking(vector&candidates,inttarget
meeiuliuus
·
2024-02-01 20:25
#
leetcode
---medium
前端
算法
javascript
代码随想录 Leetcode669. 修剪二叉搜索树
题目:代码(首刷看解析2024年1月31日):class
Solution
{public:TreeNode*trimBST(TreeNode*root,intlow,inthigh){if(!
meeiuliuus
·
2024-02-01 20:51
#
leetcode
---medium
前端
算法
javascript
单细胞转录组数据分析||用10X软件分析已发表的10X数据
10xGenomicsSingleCellGeneExpression
solution
商业平台为众多生物科学的单细胞研究提供了可能,越来越多10X数据发表正在丰富着我们的认知以及数据库。
周运来就是我
·
2024-02-01 20:03
代码随想录算法训练营第二十天| ● 654.最大二叉树 ● 617.合并二叉树 ● 700.二叉搜索树中的搜索 ● 98.验证二叉搜索树
二叉搜索树特性:中序序列严格递增654.最大二叉树思路:理解题意,找到数组最大值,其左元素为左子树,其右元素为右子树特殊情况:代码实现class
Solution
{public:intfindMax(constvector
heitong_fu
·
2024-02-01 19:19
算法
数据结构
leetcode
代码随想录算法训练营第二十一天| 530.二叉搜索树的最小绝对差 501.二叉搜索树中的众数 236. 二叉树的最近公共祖先
二叉搜索树:中序序列严格递增530.二叉搜索树的最小绝对差思路:根据二叉搜索树中序遍历为严格递增序列,pre是当前节点root的左节点,或者root是pre的右节点,是递增关系特殊情况:代码实现class
Solution
heitong_fu
·
2024-02-01 19:19
算法
leetcode
数据结构
代码随想录算法训练营第二十二天|235. 二叉搜索树的最近公共祖先 ● 701.二叉搜索树中的插入操作 ● 450.删除二叉搜索树中的节点
class
Solution
{public:TreeNode*lowestCommonAncestor(TreeNode*root,TreeNode*p,TreeNode*q){if(root==NULL
heitong_fu
·
2024-02-01 19:19
算法
数据结构
代码随想录算法训练营第十八天| 513.找树左下角的值 ● 112. 路径总和 ● 106.从中序与后序遍历序列构造二叉树
特殊情况:代码实现class
Solution
{public:intfindBottomLeftValue(TreeNode*root){intval;//利用队列先进先出实现层序遍历queueque;que.push
heitong_fu
·
2024-02-01 19:47
算法
数据结构
Subsets
ProblemGivenanintegerarraynumsofuniqueelements,returnallpossiblesubsets(thepowerset).The
solution
setmustnotcontainduplicatesubsets.Returnthe
solution
inanyorder.Example1
kotic
·
2024-02-01 16:29
leetcode算法学习
深度优先
算法
大白鲨咨询低调分享:高瓴张磊世界上只有一条护城河
这些都是一个不断进化、穿越周期的投资机构对自己一个的承诺和约定:Weare
Solution
虎鲸环球
·
2024-02-01 15:37
力扣hot100 长回文子串 中心扩散法 动态规划 一题多解 满注释版
Problem:5.最长回文子串文章目录思路中心扩散法DP思路参考中心扩散法class
Solution
{publicStringlongestPalindrome(Strings){if(s==null
兑生
·
2024-02-01 15:51
力扣
hot100
leetcode
动态规划
算法
力扣hot100 最长公共子序列 LCS 二维DP 空格技巧
Problem:1143.最长公共子序列文章目录思路Code思路参考Code⏰时间复杂度:O(nm)O(nm)O(nm)空间复杂度:O(nm)O(nm)O(nm)class
Solution
{publicintlongestCommonSubsequence
兑生
·
2024-02-01 15:51
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 跳跃游戏 II 贪心 思维
Code⏰时间复杂度:O(n)O(n)O(n)空间复杂度:O(1)O(1)O(1)class
Solution
{publicintjump(int[]nums){intsteps=0;intn=nums.length
兑生
·
2024-02-01 15:20
力扣
hot100
leetcode
游戏
算法
力扣hot100 最小路径和 多维DP 滚动数组 一题多解
Problem:64.最小路径和文章目录思路朴素版空间优化版思路路飞朴素版⏰时间复杂度:O(nm)O(nm)O(nm)空间复杂度:O(nm)O(nm)O(nm)class
Solution
{publicintminPathSum
兑生
·
2024-02-01 15:20
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 跳跃游戏 贪心
Problem:55.跳跃游戏文章目录思路复杂度Code思路参考挨着跳,记录最远能到达的地方复杂度时间复杂度:O(n)O(n)O(n)空间复杂度:O(1)O(1)O(1)Codeclass
Solution
兑生
·
2024-02-01 15:18
力扣
hot100
leetcode
游戏
算法
188. 买卖股票的最佳时机 IV(动态规划)
class
Solution
{publicintmaxProfit(intk,int[]prices)
cccc楚染rrrr
·
2024-02-01 14:09
LeetCode
动态规划
算法
【算法与数据结构】300、LeetCode最长递增子序列
一、题目二、解法 思路分析: 程序如下:class
Solution
{public:intlengthOfLIS(vector&nums){vectordp(nums.size(),1);intresult
晚安66
·
2024-02-01 14:59
算法
算法
代码随想录算法训练营 DAY9 | 字符串专题
leetcode找出字符串中的第一个匹配项https://leetcode.cn/problems/find-the-index-of-the-first-occurrence-in-a-string/class
Solution
Revenge2322
·
2024-02-01 14:51
算法日记
leetcode
算法
职场和发展
华为配置ARP安全综合功能实验
配置ARP安全综合功能示例组网图形图1配置ARP安全功能组网图ARP安全简介配置注意事项组网需求配置思路操作步骤配置文件ARP安全简介ARP(AddressRe
solution
Protocol)安全是针对
知孤云出岫
·
2024-02-01 14:49
网络
网络
php
web安全
代码随想录算法训练营Day8 | 字符串part01
class
Solution
{public:voidswap(char&a,char&b){chartemp=a;a=b;b=temp;}voidreverseString(vector&s){for(inti
锋_Feng
·
2024-02-01 14:19
算法
c++
leetcode
代码随想录算法训练营DAY8 | 字符串(1)
class
Solution
{publicvoidreverseString(char[]s){intn=s.length;intleft=0,right=n-1;while(left=2*k){right
橙南花已开
·
2024-02-01 14:18
代码随想录算法训练营
算法
leetcode
数据结构
代码随想录Day37 | 738. 单调递增的数字 | 968. 监控二叉树
738.单调递增的数字class
Solution
{public:intmonotoneIncreasingDigits(intN){stringstrNum=to_string(N);//flag用来标记赋值
white_0629
·
2024-02-01 14:00
算法题练习
算法
java
数据结构
代码随想录Day37 | 738.单调递增的数字 、 968.监控二叉树
738.单调递增的数字1.暴力思路:从大到小一个一个试2.贪心:从低位开始处理class
Solution
{public:intmonotoneIncreasingDigits(intN){stringstrNum
hewei@7
·
2024-02-01 13:53
贪心算法
算法
leetcode
day 59 503.下一个更大元素II 42. 接雨水
vector的扩充要熟悉vectornumsT(nums.begin(),nums.end());nums.insert(nums.end(),numsT.begin(),numsT.end());class
Solution
quarter-moon
·
2024-02-01 12:59
算法
leetcode
数据结构
【代码随想录Day39动态规划part02】62.不同路径、63.不同路径Ⅱ
目录Day3962.不同路径63.不同路径ⅡDay3962.不同路径class
Solution
{publicintuniquePaths(intm,intn){intdp[][]=newint[m][n
joyboy0405
·
2024-02-01 12:59
动态规划
算法
leetcode
day38 ● 509. 斐波那契数 ● 70. 爬楼梯 ● 746. 使用最小花费爬楼梯
class
Solution
{public:intfib(intn){inta=0;intb=1;intres=0;if(n==1)return1;for(inti=2;idp(n+1,0);if(n&cost
quarter-moon
·
2024-02-01 12:29
算法
day60 84.柱状图中最大的矩形
单调栈写法:class
Solution
{public:intlargestRectangle
quarter-moon
·
2024-02-01 12:28
哈希算法
算法
day39 动态规划part02 ● 62.不同路径 ● 63. 不同路径 II
class
Solution
{public:intuniquePaths(intm,intn){vector>dp(m+1,vector(n+1,0));for(inti=0;i>&obstacleGrid
quarter-moon
·
2024-02-01 12:24
动态规划
算法
LeetCode 第22天
class
Solution
{public:TreeNode*traversal(TreeNode*root,TreeNode*p,TreeNode*q){//1、以下是普通搜索树的方法//
星仔007
·
2024-02-01 11:14
leetcode
算法
职场和发展
Maven 报错 Could not transfer artifact 和 501 HTTPS Required
spring-boot-starter-parent:pom:2.3.4.RELEASEfromhttp://repo1.maven.org/maven2/wascachedinthelocalrepository,re
solution
willnotbereattemptedun
KingWorld
·
2024-02-01 10:22
DAY36: 贪心算法part5区间问题435、763、56
代码如下:时间复杂度O(nlogn)空间复杂度O(N)class
Solution
{staticboolcmp(constv
鴒凰
·
2024-02-01 10:58
leetcode刷题系列
算法
leetcode
数据结构
笔记
c++
贪心算法
对称的二叉树
如果一棵二叉树和它的镜像一样,那么它是对称的例子:代码一(递归法):class
Solution
{publicbooleanisSymmetric(TreeNoderoot){returnsymmetric
不过普通话一乙不改名
·
2024-02-01 09:56
力扣刷题
leetcode
算法
职场和发展
青蛙跳台阶
例子:代码1:(递归法)class
Solution
{publicintnumways(intn){if(n==1)return1;if(n==0)return1;returnnumways(n-1)+numways
不过普通话一乙不改名
·
2024-02-01 09:56
力扣刷题
leetcode
算法
职场和发展
ubuntu qt mysql驱动,qt5.1.1 mysql ubuntu QMYSQL驱动未加载
I'mtryingtoaccessmysqlusingQt5.1.1butiamgettingtheerrortheerrorbelow.Ialsosearchedalotongooglebutunabletofixit.Pleasesuggestmea
solution
sothatiamabletoresolvethiserror.error
微果酱
·
2024-02-01 09:40
ubuntu
qt
mysql驱动
vtk PrintSelf
vtkSmartPointercone=vtkSmartPointer::New();cone->SetHeight(3.0);cone->SetRadius(1.0);cone->SetRe
solution
wanyongtai
·
2024-02-01 09:10
vtk
RK3588 Android12强制HDMI输出特殊分辨率timing
1.把白名单去掉,device/rockchip/common/device.mk中如下位置注释掉PRODUCT_COPY_FILES+=\$(TARGET_DEVICE_DIR)/re
solution
_white.xml
ewin2012
·
2024-02-01 07:19
android
[349. 两个数组的交集](C++)(第三种解法:set)
建议先看看这篇对哈希算法的讲解哦,可能事半功倍哦~传送门:常见的三种哈希结构(数组,set,map)-CSDN博客题目链接:349.两个数组的交集-力扣(LeetCode)AC代码:/*C++写法*/class
Solution
脑子不好的小菜鸟
·
2024-02-01 06:34
刷题
算法
leetcode
哈希算法
c++
上一页
47
48
49
50
51
52
53
54
下一页
按字母分类:
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
其他