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
problem
代码随想录算法训练营第22天|235. 二叉搜索树的最近公共祖先|701.二叉搜索树中的插入操作|450.删除二叉搜索树中的节点
链接:https://leetcode.cn/
problem
s/lowest-common-ancestor-of-a-binary
永不服输的锐锐米
·
2024-02-01 20:45
数据结构
「leetcode」669. 修剪二叉搜索树:【递归】【迭代】详解
669.修剪二叉搜索树题目链接:https://leetcode-cn.com/
problem
s/trim-a-binary
代码随想录
·
2024-02-01 20:59
leecode题解
算法
二叉树
面试
编程语言
C++
【ACWing】1170. 排队布局
题目地址:https://www.acwing.com/
problem
/content/1172/当排队等候喂食时,奶牛喜欢和它们的朋友站得靠近些。
记录算法题解
·
2024-02-01 19:16
AC
搜索与图论
算法
图论
差分约束系统:排队布局
题目https://loj.ac/
problem
/10090#include#defineinf0x3f3f3f3fusingnamespacestd;longlongn,l,d,k,x,a,b;structnode
ankuwu5570
·
2024-02-01 19:43
力扣白嫖日记(sql)
前言练习sql语句,所有题目来自于力扣(https://leetcode.cn/
problem
set/database/)的免费数据库练习题。
Gary.Li
·
2024-02-01 19:37
力扣刷题
leetcode
sql
数据库
【力扣白嫖日记】SQL
前言练习SQL语句,所有题目来自于力扣(https://leetcode.cn/
problem
set/database/)的免费数据库练习题。
Gary.Li
·
2024-02-01 19:37
力扣刷题
leetcode
sql
数据库
力扣白嫖日记(sql)
前言练习sql语句,所有题目来自于力扣(https://leetcode.cn/
problem
set/database/)的免费数据库练习题。
Gary.Li
·
2024-02-01 19:03
力扣刷题
leetcode
sql
数据库
正确理解MYSQL的幻读
一、定义1、幻读MYSQL官方叫法是PhantomRows,意为鬼影行或者幻影行,请看官方定义:Theso-calledphantom
problem
occurswithinatransactionwhenthesamequeryproducesdifferentsetsofrowsatdifferenttimes.Forexample
layasntx
·
2024-02-01 19:49
SPOJ-1811. Longest Common Substring && 1812. Longest Common Substring II (后缀自动机)
题目:http://www.spoj.com/
problem
s/LCS/http://www.spoj.com/
problem
s/LCS2/两道水题,据说SA之类的常数卡得挺紧的,于是乎顺手拿过来练手了一下
AmadeusChan
·
2024-02-01 17:49
【题解 && Trie树 && 字符串】 C - New but Nostalgic
Problem
题目描述:分析:题目中涉及到了若干字符串的公共前缀,显然可以用trie树去完成建立trie树的同时,我们为了做题方便,用以下两个数组去记录一下trie树的信息:totitot_itoti表示以i为根的子树中有几个字符串,numinum_inumi表示以i结尾的字符串有几个建立完trie树之后,就开始了解决问题的过程题目中要我们找所有公共前缀的最小值所以我们只需要从小到大枚举公共前缀,看当前公共前缀
鹭天
·
2024-02-01 16:35
字符串
题解
c语言
算法
开发语言
Subsets
Problem
Givenanintegerarraynumsofuniqueelements,returnallpossiblesubsets(thepowerset).Thesolutionsetmustnotcontainduplicatesubsets.Returnthesolutioninanyorder.Example1
kotic
·
2024-02-01 16:29
leetcode算法学习
深度优先
算法
Combination Sum
Problem
Givenanarrayofdistinctintegerscandidatesandatargetintegertarget,returnalistofalluniquecombinationsofcandidateswherethechosennumberssumtotarget.Youmayreturnthecombinationsinanyorder.Thesamenumbe
kotic
·
2024-02-01 16:29
leetcode算法学习
深度优先
算法
Word Search II
Problem
Givenanmxnboardofcharactersandalistofstringswords,returnallwordsontheboard.Eachwordmustbeconstructedfromlettersofsequentiallyadjacentcells
kotic
·
2024-02-01 16:59
leetcode算法学习
算法
P1429 平面最近点对(加强版)
原题链接:平面最近点对(加强版)-洛谷https://www.luogu.com.cn/
problem
/P1429题目背景P7883平面最近点对(加强加强版)题目描述给定平面上n个点,找出其中的一对点的距离
小菜锅刷题日记
·
2024-02-01 15:23
平面
算法
c++
数学
力扣hot100 长回文子串 中心扩散法 动态规划 一题多解 满注释版
Problem
:5.最长回文子串文章目录思路中心扩散法DP思路参考中心扩散法classSolution{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)classSolution{publicintlongestCommonSubsequence
兑生
·
2024-02-01 15:51
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 跳跃游戏 II 贪心 思维
Problem
:45.跳跃游戏II思路参考每次在上次能跳到的范围(end)内选择一个能跳的最远的位置(也就是能跳到max_far位置的点)作为下次的起跳点!
兑生
·
2024-02-01 15:20
力扣
hot100
leetcode
游戏
算法
力扣hot100 最小路径和 多维DP 滚动数组 一题多解
Problem
:64.最小路径和文章目录思路朴素版空间优化版思路路飞朴素版⏰时间复杂度:O(nm)O(nm)O(nm)空间复杂度:O(nm)O(nm)O(nm)classSolution{publicintminPathSum
兑生
·
2024-02-01 15:20
力扣
hot100
leetcode
算法
职场和发展
力扣hot100 跳跃游戏 贪心
Problem
:55.跳跃游戏文章目录思路复杂度Code思路参考挨着跳,记录最远能到达的地方复杂度时间复杂度:O(n)O(n)O(n)空间复杂度:O(1)O(1)O(1)CodeclassSolution
兑生
·
2024-02-01 15:18
力扣
hot100
leetcode
游戏
算法
【每日一题】 2024年1月汇编
博客主页:A_SHOWY系列专栏:力扣刷题总结录数据结构云计算数字图像处理力扣每日一题_【1.4】2397.被列覆盖的最多行数2397.被列覆盖的最多行数https://leetcode.cn/
problem
s
A_SHOWY
·
2024-02-01 14:00
算法
力扣
c++
代码随想录算法训练营 DAY9 | 字符串专题
leetcode找出字符串中的第一个匹配项https://leetcode.cn/
problem
s/find-the-index-of-the-first-occurrence-in-a-string/
Revenge2322
·
2024-02-01 14:51
算法日记
leetcode
算法
职场和发展
代码随想录算法训练营DAY8 | 字符串(1)
一、LeetCode344反转字符串题目链接:344.反转字符串https://leetcode.cn/
problem
s/reverse-string/思路:双指针法交换。
橙南花已开
·
2024-02-01 14:18
代码随想录算法训练营
算法
leetcode
数据结构
lucky记录113天
2021年05月29日扇贝每日一句2022年倒计时216天
Problem
sareguidelines,notstopsigns!问题不是止步的信号,而是前进的指引。
杉杉妈Alice
·
2024-02-01 14:13
代码随想录算法训练营29期Day34|LeetCode 1005,134,135
文档讲解:K次取反后最大化的数组和加油站分发糖果1005.K次取反后最大化的数组和题目链接:https://leetcode.cn/
problem
s/maximize-sum-of-array-after-k-negations
tlingyuqi
·
2024-02-01 11:04
代码随想录算法训练营29期
算法
leetcode
职场和发展
c++
算法练习01——哈希&&部分双指针
1.使用Set存哈希,2.快慢指针)454.四数相加II383.赎金信15.三数之和*(双指针)18.四数之和*(双指针)128.最长连续序列1.两数之和(*)https://leetcode.cn/
problem
s
荒野大飞
·
2024-02-01 11:29
lc刷题
算法
哈希算法
寒假思维训练day17 C. Equal Frequencies
day17摘要:Part1题意Part2题解(有数学推导,latex形式)Part3代码(C++版本,有详细注释)Part4我对构造题的归纳总结(自己对构造题的浅薄理解还有例题)题目链接(有需自取):
Problem
嘗_
·
2024-02-01 10:41
算法
c++
109. Convert Sorted List to Binary Search Tree
https://leetcode.com/
problem
s/convert-sorted-list-to-binary-search-tree/description/只要items数目确定,所生成的BalancedBST
Super_Alan
·
2024-02-01 10:57
Codeforces 1221C(推公式\二分查找)
https://codeforces.com/
problem
set/
problem
/1221/C本题实际上是说有三种人,分别有,,个,从中取出三个人,要求一个人是第一种,一个人是第二种人,问最多能取多少组人
素理想
·
2024-02-01 10:10
291. Word Pattern II
https://leetcode.com/
problem
s/word-pattern-ii/description/image.png这道题因为就是PATTERN的一个字母可以对应一个STRING,我们可以用枚举然后回溯看有没有可能的解
西部小笼包
·
2024-02-01 09:55
Opencv VideoCapture File, Web Camera, RTSP stream
VideocaptureinOpenCVisareallyeasytask,butforalittlebitexperienceduser.Whatisthe
problem
?
东枫科技
·
2024-02-01 09:00
linxu
前端
opencv
webpack
【leetcode刷题】15. 3Sum
原题链接:https://leetcode.com/
problem
s/3sum/解题思路:首先将数组进行排序,排序过后i对整个列表进行遍历,j从i+1开始遍历,k从最后一位往前遍历。
maodoudou168
·
2024-02-01 05:01
2017年美国大学生数学建模竞赛C题优秀论文解读
2017年美赛C题赛题2017MCM
Problem
C:“Cooperateandnavigate”TrafficcapacityislimitedinmanyregionsoftheUnitedStatesduetothenumberoflanesofroads.Forexample
校苑数模
·
2024-02-01 05:50
LeetCode-078-子集
:nums=[1,2,3]输出:[[3],[1],[2],[1,2,3],[1,3],[2,3],[1,2],[]]来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s
刻苦驴哝
·
2024-02-01 03:17
二叉树的遍历(OJ)
https://leetcode.cn/
problem
s/binary-tree-preorder-traversal/description/力扣(LeetCode)官网-全球极客挚爱的技术成长平台备战技术面试
铁蛋Q
·
2024-02-01 03:47
数据结构
c语言
算法
DS Wannabe之5-AM Project: DS 30day int prep day1
ArtificialIntelligence:AIispurelymathandscientificexercise,butwhenitbecamecomputational,itstartedtosolvehuman
problem
sformalizedintoasubsetofcompute
wendyponcho
·
2024-02-01 02:36
人工智能
学习
笔记
机器学习
C. Madoka and Formal Statement
链接
Problem
-1717C-Codeforces思路:当有任意一个ai>bi的时候,肯定是无法变为序列b的。
ros275229
·
2024-02-01 01:49
算法学习
灵茶
CF
算法
c++
codeforces
AtCoder Beginner Contest 338(ABCDEF题)
Problem
StatementYouaregivenanon-emptystringSSSconsistingofuppercaseandlowercaseEnglishletters.Determinewhetherthefollowingconditionissatisfied
阿史大杯茶
·
2024-02-01 00:57
Atcoder
Atcoder
算法
Codeforces Round 922 (Div. 2 ABCDEF题)
A.BrickWall
Problem
StatementAbrickisastripofsize1×k1\timesk1×k,placedhorizontallyorvertically,wherekkkcanbeanarbitrarynumberthatisatleast222
阿史大杯茶
·
2024-02-01 00:57
Codeforces
c++
Codeforces
算法
AtCoder Regular Contest 170 (ABC题)
A-YetAnotherAB
Problem
Problem
StatementYouaregiventwostringsSSSandTTToflengthNNNconsistingofAandB.LetSiS_iSidenotetheiii-thcharacterfromtheleftofSSS.Youcanrepeatthefollowingoperationanynumberoftimes
阿史大杯茶
·
2024-02-01 00:26
Atcoder
Atcoder
算法
Codeforces Round 921 (Div. 2 ABCDE题)
Problem
StatementYouaregiventwopositiveintegersnnnandkkk.YourtaskistofindastringssssuchthatallpossiblestringsoflengthnnnthatcanbeformedusingthefirstkkklowercaseEnglishalphabets
阿史大杯茶
·
2024-02-01 00:54
Codeforces
c++
算法
Codeforces
Atcoder ABC338 A-D题解
Link:ABC338
Problem
A:妥妥的签到题。
seanli1008
·
2024-02-01 00:44
题解
题解
代码随想录算法训练营天 第九章 四十二天| 01背包问题 二维 01背包问题 一维 416. 分割等和子集
代码随想录算法训练营天第九章四十二天|01背包问题二维01背包问题一维416.分割等和子集01背包问题二维publicclassBag
Problem
{publicstaticvoidmain(String
酷酷的贝吉塔
·
2024-02-01 00:26
算法
动态规划
java
代码随想录算法训练营第42天 | 01背包问题 416. 分割等和子集
二、解法二维dp:递推公式:dp[i][j]=max(dp[i-1][j],dp[i-1][j-weight[i]]+value[i]);voidtest_2_wei_bag_
problem
1(){vectorwe
虎年喵飞飞
·
2024-02-01 00:51
刷题
算法
动态规划
LeetCode 3. 无重复字符的最长子串
https://leetcode.cn/
problem
s/longest-substring-without-repeating-characters/给定一个字符串s,请你找出其中不含有重复字符的最长子串的长度
Suppose
·
2024-01-31 22:01
leetCode刷题
leetcode
算法
职场和发展
LeetCode 733.图像渲染
https://leetcode.cn/
problem
s/flood-fill有一幅以mxn的二维整数数组表示的图画image,其中image[i][j]表示该图画的像素值大小。
Suppose
·
2024-01-31 22:00
leetCode刷题
leetcode
算法
深度优先
LeetCode 55.跳跃游戏
https://leetcode-cn.com/
problem
s/jump-game/给定一个非负整数数组nums,你最初位于数组的第一个下标。数组中的每个元素代表你在该位置可以跳跃的最大长度。
Suppose
·
2024-01-31 22:30
leetCode刷题
leetcode
动态规划
算法
LeetCode 300. 最长递增子序列
链接:https://leetcode.cn/
problem
s/longest-increasing-subsequence给你一个整数数组nums,找到其中最长严格递增子序列的长度。
Suppose
·
2024-01-31 22:30
leetCode刷题
leetcode
算法
职场和发展
LeetCode 413.等差数列
https://leetcode.cn/
problem
s/arithmetic-slices如果一个数列至少有三个元素,并且任意两个相邻元素之差相同,则称该数列为等差数列。
Suppose
·
2024-01-31 22:30
leetCode刷题
leetcode
算法
职场和发展
Java算法 leetcode简单【树的遍历,深度计算及比较】刷题记录
Java算法leetcode简单【树的遍历,深度计算及比较】刷题记录俩数之和:https://leetcode.cn/
problem
s/two-sum/二进制求和:https://leetcode.cn
程序媛一枚~
·
2024-01-31 21:53
JAVA
算法
算法
java
leetcode
洛谷 P3799 妖梦拼木棒
题目链接:妖梦拼木棒-洛谷https://www.luogu.com.cn/
problem
/P3799明明很简单的一道暴力题,我却wa了好几次orz,记录一下踩到的坑。
合金Bunny酱
·
2024-01-31 21:11
算法
上一页
17
18
19
20
21
22
23
24
下一页
按字母分类:
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
其他