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
LeetCode.cn
差分数组巧解拼车难题
力扣1094https://
leetcode.cn
/problems/car-pooling/车上最初有capacity个空座位。
lbflyo
·
2025-07-28 19:18
数据结构
【优选算法】BFS解决FloodFill算法
目录FloodFill算法简介一、[图像渲染](https://
leetcode.cn
/problems/flood-fill/description/)二、[岛屿数量](https://
leetcode.cn
·
2025-07-28 00:33
leetcode 504. Base 7 七进制数 (简单)
一、题目大意https://
leetcode.cn
/problems/base-7给定一个整数num,将其转化为7进制,并以字符串形式输出。
okokabcd
·
2025-07-27 07:55
LeetCode每日一题
leetcode
算法
职场和发展
链表哑节点基础
文章目录一、哑节点(DummyNode)基础概念1、定义2、优点(作用原理)3、缺点4、类型4、应用场景二、例题应用1、[24.两两交换链表中的节点](https://
leetcode.cn
/problems
·
2025-07-26 01:45
【LeetCode 1695. 删除子数组的最大得分】解析
可伸缩的“探索边界”1.问题的核心:找到最“值钱”的“纯净”片段2.滑动窗口:一个能屈能伸的“探索框”第二部分:代码实现——滑动窗口的“装备”完整代码展示代码精讲LeetCode中国站原文https://
leetcode.cn
李昊_
·
2025-07-23 20:19
LeetCode
leetcode
算法
数据结构
2163. 删除元素后和的最小差值
2163.删除元素后和的最小差值题目链接:2163.删除元素后和的最小差值代码如下://参考链接:https://
leetcode.cn
/problems/minimum-difference-in-sums-after-removal-of-elements
咔咔咔的
·
2025-07-22 08:52
leetcode
c++
BFS-FloodFill 算法 解决最短路问题 多源 解决拓扑排序
文章目录一、FloodFill算法[733.图像渲染](https://
leetcode.cn
/problems/flood-fill/description/)2.思路3.代码[200.岛屿数量](https
penguin_bark
·
2025-07-21 16:37
#
BFS
算法
宽度优先
leetcode
LeetCode 77 Java实现
1.题目原题链接:77.组合-力扣(LeetCode):https://
leetcode.cn
/problems/combinations/给定两个整数n和k,返回范围[1,n]中所有可能的k个数的组合
零一魔法
·
2025-07-21 07:29
LeetCode
java
leetcode
开发语言
算法
【LeetCode 3136. 有效单词】解析
逻辑判断题第一部分:算法思想——“清单核对”与“一票否决”第二部分:代码实现——清晰的逻辑翻译实现一:常规判断逻辑实现二:使用正则表达式(一行代码的“炫技”)第三部分:总结LeetCode中国站原文https://
leetcode.cn
·
2025-07-19 21:25
【两个数的最大异或值】LeetCode421.数组中两个数的最大异或值 && LeetCode2935.找出强数对的最大异或值Ⅱ
一、LeetCode421.数组中两个数的最大异或值https://
leetcode.cn
/problems/maximum-xor-of-two-numbers-in-an-array/描述:给你一个整数数组
小鲈鱼-
·
2025-07-10 21:58
数据结构
算法
c++
leetcode
1462. 课程表 IV
思路1floydhttps://
leetcode.cn
/problems/course-schedule-iv/solution/1462-cji-hu-shuang-bai-de-yu-ji-suan-jie-a1kk
duoyasong5907
·
2025-07-10 21:57
数据结构与算法
leetcode
算法
职场和发展
dp力扣 329. 矩阵中的最长递增路径
329.矩阵中的最长递增路径题目:链接https://
leetcode.cn
/problems/longest-increasing-path-in-a-matrix/代码:classSolution{
·
2025-07-09 13:32
【算法入门】LeetCode 239. 滑动窗口最大值:Java与JavaScript双解法详解|单调队列的精妙运用力扣239题详解:滑动窗口最大值(Java & JavaScript 双语言实现)
题目:官方链接:https://
leetcode.cn
/problems/sliding-window-maximum/description/?
南北极之间
·
2025-07-09 05:06
算法
算法
leetcode
java
3333. 找到初始输入字符串 II
3333.找到初始输入字符串II题目链接:3333.找到初始输入字符串II代码如下://参考链接:https://
leetcode.cn
/problems/find-the-original-typed-string-ii
咔咔咔的
·
2025-07-06 09:25
leetcode
c++
右移的错误使用 造成 超出时间限制 解决方案
题目链接:https://
leetcode.cn
/problems/guess-number-higher-or-lower/?
aPurpleBerry
·
2025-06-28 15:51
LeetCode做题总结
算法
力扣
二分查找
010 【入门】链表入门题目-合并两个有序链表
▶JDK8+|⏱️O(m+n)核心代码实现packageclass010;//将两个升序链表合并为一个新的升序链表并返回//新链表是通过拼接给定的两个链表的所有节点组成的//测试链接:https://
leetcode.cn
要天天开心啊
·
2025-06-28 13:39
算法专栏
链表
数据结构
LeetCode 3090. 每个字符最多出现两次的最长子字符串
题目链接https://
leetcode.cn
/problems/maximum-length-substring-with-two-occurrences/题目描述给定一个字符串s,找出满足每个字符最多出现两次的最长子字符串
·
2025-06-23 10:03
滑动窗口python
148. 排序链表
详细题解可参见https://
leetcode.cn
/problems/sort-lis
zmuy
·
2025-06-19 19:19
LeetCode
hot100
链表
数据结构
338比特位技术
题目链接:https://
leetcode.cn
/problems/counting-bits/这个题也是让我们找到每个1的个数,也是和上一题找到二进制位1的个数思路大体类似,让n和1去&,每次&之后判断是否为
无敌的暴暴龙666
·
2025-06-18 18:29
算法
算法
leetcode
数据结构
算法日常刷题笔记(7)
第一天字符串反转字符串及其反转中是否存在同一子字符串https://
leetcode.cn
/problems/existence-of-a-substring-in-a-string-and-its-reverse
·
2025-06-16 20:14
DP刷题练习(二)
文章目录DP刷题练习(二)[1049.最后一块石头的重量II-力扣(LeetCode)](https://
leetcode.cn
/problems/last-stone-weight-ii/description
Blue.ztl
·
2025-06-16 17:25
写写算法
算法
cpp
DP刷题练习(五)
文章目录DP刷题练习(五)[115.不同的子序列-力扣(LeetCode)](https://
leetcode.cn
/problems/distinct-subsequences/)[583.两个字符串的删除操作
Blue.ztl
·
2025-06-16 17:25
写写算法
算法
数据结构
蓝桥杯
leetcode 路径总和III java
参考leetcode上大神的思路:https://
leetcode.cn
/problems/path-sum-iii/solutions/596361/dui-qian-zhui-he-jie-fa-de-yi-dian-jie-s-dey6
咪嗷喵挖藕哇
·
2025-06-16 14:05
leetcode
java
算法
代码随想录算法训练营Day1(LeetCode704二分查找;LeetCode27移除元素;LeetCode977 有序数组的平方)
二分查找做题情况相关题目LeetCode35LeetCode34LeetCode27移除元素做题情况LeetCode977有序数组的平方做题情况LeetCode704二分查找题目链接:二分查找(https://
leetcode.cn
White__Bz
·
2025-06-13 01:34
leetcode
算法
代码随想录算法训练营Day2(LeetCode209长度最小的子数组;LeetCode59螺旋矩阵II;卡码:区间和;卡码:开发商购买土地)
LeetCode209长度最小的子数组做题情况LeetCode59螺旋矩阵II做题情况卡码区间和做题情况卡码开发商购买土地做题情况LeetCode209长度最小的子数组题目链接:长度最小的子数组(https://
leetcode.cn
White__Bz
·
2025-06-13 01:34
leetcode
算法
矩阵
线性代数
leetcode:20. 有效的括号
20.有效的括号来源:力扣(LeetCode)链接:https://
leetcode.cn
/problems/valid-parentheses/给定一个只包括‘(’,‘)’,‘{’,‘}’,‘[’,‘
uncle_ll
·
2025-06-12 20:26
编程练习-Leetcode
leetcode
算法
栈
有效括号
算法训练
LeetCode 11题“盛最多水的容器”
题目https://
leetcode.cn
/problems/container-with-most-water/description/?
·
2025-06-12 05:01
LeetCode 240 搜索二维矩阵 II
题目:https://
leetcode.cn
/problems/search-a-2d-matrix-ii/description/?
Coding小公仔
·
2025-06-11 21:18
leetcode
leetcode
矩阵
算法
二叉树 力扣hot100热门面试算法题 面试基础 核心思路 背题 将有序数组转换为二叉搜索树 二叉树的层序遍历 验证二叉搜索树 二叉搜索树中第k小的元素 二叉树的右视图 二叉树展开为链表 从前序与中序
二叉树将有序数组转换为二叉搜索树https://
leetcode.cn
/problems/convert-sorted-array-to-binary-search-tree/核心思路高度平衡的二叉搜索树定义为
尘土哥
·
2025-06-10 08:54
算法
leetcode
面试
【DFS】子集(两种递归策略)
https://
leetcode.cn
/problems/TVdhkn/submissions/544682490/二、题解枚举当前元素选或者不选对应这样一个序列123,对于这个序列的第一个元素,在最终的答案中对于每一个位置的元素
敲击石头的一百零一次
·
2025-06-09 05:08
ds
深度优先
算法
力扣 第314场周赛 Q3 使用机器人打印字典序最小的字符串【难度:中等,rating: 1953】(栈+贪心)
题目链接https://
leetcode.cn
/problems/using-a-robot-to-print-the-lexicographically-smallest-string/题目来源于:第
nefu-ljw
·
2025-06-08 04:17
力扣-剑指offer
leetcode
算法
贪心算法
栈
234.回文链表 (Python3)
Problem:234.回文链表思路参考:https://
leetcode.cn
/problems/palindrome-linked-list/solutions/457059/hui-wen-lian-biao-by-leetcode-solution
Syntax_CD
·
2025-06-06 19:00
LeetCode精选
链表
python
数据结构
leetcode
每日算法刷题Day21 6.3:leetcode二分答案2道题,用时1h20min(有点慢)
3.2982.找出出现至少三次的最长特殊子字符串II(中等,学习)https://
leetcode.cn
/problems/find-longest-special-substring-that-occurs-thrice-ii
爱coding的橙子
·
2025-06-05 17:05
算法
算法
leetcode
职场和发展
Leetcode 261. 以图判树
1.2.题目地址https://
leetcode.cn
/problems/graph-valid-tree/description/2.解题方法2
Benjamin Tang
·
2025-06-04 18:13
leetcode
算法
DFS
并查集
滑动窗口 -- 灵神刷题
元素都是正数,并且求数量一般都是可以使用滑动窗口长度最小的子数组https://
leetcode.cn
/problems/minimum-size-subarray-sum/description/classSolution
yb0os1
·
2025-06-03 04:05
java
数据结构
滑动窗口
灵神
day06
第一题https://
leetcode.cn
/problems/actors-and-directors-who-cooperated-at-least-three-times/submissions/
linux-hzh
·
2025-06-02 23:27
leetcode每日三题
leetcode
算法
java
LeetCode 1524. 和为奇数的子数组数目
题目:https://
leetcode.cn
/problems/number-of-sub-arrays-with-odd-sum/description/题目分析问题描述:给定一个整数数组arr,返回其中和为奇数的子数组的数目
Coding小公仔
·
2025-06-02 13:46
leetcode
leetcode
算法
LeetCode 高频SQL50(基础版)
文章目录[高频SQL50题(基础版)](https://
leetcode.cn
/studyplan/sql-free-50/)1查询1757.可回收且低脂的产品+-------------+------
卷末
·
2025-05-31 21:05
SQL
leetcode
算法
Leetcode LCR 187. 破冰游戏
1.2.题目地址https://
leetcode.cn
/problems/yuan-quan-zhong-zui-hou-
Benjamin Tang
·
2025-05-31 17:02
leetcode
算法
约瑟夫环
Leetcode 465. 最优账单平衡
1.2.题目地址https://
leetcode.cn
/problems/optimal-account-balancing/descrip
Benjamin Tang
·
2025-05-31 17:02
leetcode
算法
动态规划
状压dp
Leetcode 340. 至多包含 K 个不同字符的最长子串
1.2.题目地址https://
leetcode.cn
/problems/longest-substring-with-at-most-k-distinct-characters/description
Benjamin Tang
·
2025-05-31 17:01
leetcode
算法
滑动窗口
day01
第一题https://
leetcode.cn
/problems/game-play-analysis-i/submissions/632977238/代码#WriteyourMySQLquerystatementbelowSELECTt1
linux-hzh
·
2025-05-30 06:20
leetcode每日三题
算法
mysql
leetcode
java
4月28日
第一题Leetcode51https://
leetcode.cn
/problems/n-queens/?
椒盐螺丝钉
·
2025-05-29 12:43
深度优先
算法
数据结构初阶-顺序表的应用
1.移除元素题目链接:https://
leetcode.cn
/problems/remove-element/description思路:双指针法,第一个变量src指向原位置的下标,dst变量指向移位后的下标
刚入门的大一新生
·
2025-05-29 08:16
数据结构
LeetCode 209 长度最小的子数组
题目链接中文版:https://
leetcode.cn
/problems/minimum-size-subarray-sum/description/题目描述给定一个含有n个正整数的数组和一个正整数target
James Shangguan
·
2025-05-29 05:13
LeetCode--Java版
leetcode
算法
java
LeetCode 3362.零数组变换 III:贪心+优先队列+差分数组——清晰题解
【LetMeFly】3362.零数组变换III:贪心+优先队列+差分数组——清晰题解力扣题目链接:https://
leetcode.cn
/problems/zero-array-transformation-iii
Tisfy
·
2025-05-26 00:52
题解
#
力扣LeetCode
leetcode
算法
题解
优先队列
贪心
差分数组
回溯 力扣hot100热门面试算法题 面试基础 核心思路 背题 括号生成 单词搜索 分割回文串 N皇后 全排列 子集 电话号码的字母组合 组合总和
回溯括号生成https://
leetcode.cn
/problems/generate-parentheses/核心思路深度优先搜索(DFS):DFS是探索所有可能路径的方法,这里用于生成括号组合。
尘土哥
·
2025-05-24 06:40
算法
leetcode
面试
LeetCode 925. 长按键入 java题解
https://
leetcode.cn
/problems/long-pressed-name/description/classSolution{publicbooleanisLongPressedName
奔跑的废柴
·
2025-05-23 10:57
LeetCode
leetcode
java
算法
双指针
LeetCode 129. 求根节点到叶节点数字之和 java题解
https://
leetcode.cn
/problems/sum-root-to-leaf-numbers/description/classSolution{intres=0;publicintsumNumbers
奔跑的废柴
·
2025-05-23 10:27
leetcode
java
算法
LeetCode 649. Dota2 参议院 java题解
https://
leetcode.cn
/problems/dota2-senate/description/贪心。不会写。
奔跑的废柴
·
2025-05-23 10:27
LeetCode
leetcode
java
算法
贪心
贪心算法
上一页
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
其他