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
【分类讨论】CF1834D
Problem
-D-Codeforces题意:思路:这是个分类讨论题,一开始还以为是枚举什么的,发现根本枚举不了注意到最终的答案就两种情况:区间包含or区间不包含对于第一种情况,贡献的最大值就是mxlen-milen
lamentropetion
·
2023-10-21 22:58
分类讨论
算法
【暴力剪枝】CF1708D
https://codeforces.com/contest/1708/
problem
/D题意思路这样的操作下,数列减的速度是非常快的,也就是说,易出现很多的0,0的操作没啥意义,所以我们要找到第一个>
lamentropetion
·
2023-10-21 22:58
结论题
剪枝
算法
机器学习
【分类讨论】CF1747D
Problem
-D-Codeforces题意思路一看这个做法一定就是分类讨论先判无解显然,如果区间异或和不是0一定无解如果区间内全是0,答案一定是0之后怎么讨论注意到需要讨论区间长度如果长度是奇数,那么直接操作即可
lamentropetion
·
2023-10-21 21:48
bitmask
分类讨论
算法
数c++ python个数_LeetCode简单题:202. 快乐数(Python,C++,Java)
一.解法https://leetcode-cn.com/
problem
s/happy-number/要点:快慢指针牵涉到有没有环的时候经常要考虑快慢指针,用来防止无限循环的发生,详见141.环形链表的解法
weixin_39926104
·
2023-10-21 21:26
数c++
python个数
LeetCode 202 快乐数 4ms C++简单快乐解法
题目描述来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/happy-number编写一个算法来判断一个数是不是“快乐数”。
NoNameMing
·
2023-10-21 21:25
Leetcode
Leetcode刷题67-202. 快乐数(C++详细解法!!!)
题目来源:链接:[https://leetcode-cn.com/
problem
s/perfect-squares/]202.快乐数1.问题描述2.我的解决方案3.大神们的解决方案4.我的收获1.问题描述编写一个算法来判断一个数是不是
hanxiao_101
·
2023-10-21 21:25
LeetCode从零开始
LeetCode
C++
The officer
Ifyouencounter
problem
sinthegamecancontactus!!
ieksimts
·
2023-10-21 21:44
wqs二分+斜率优化:1019T4 / P9338
https://www.luogu.com.cn/
problem
/P9338考虑暴力前iii个分jjj段fi,k=fj−1,k−1+gj,if_{i,k}=f_{j-1,k-1}+g_{j,i}fi,k
Qres821
·
2023-10-21 21:41
dp
wqs二分
斜率优化
LeetCode·904.水果成篮·滑动窗口
链接:https://leetcode.cn/
problem
s/fruit-into-baskets/solution/hd-by-xun-ge-v-nyer/来源:力扣(LeetCode)著作权归作者所有
迅~
·
2023-10-21 21:03
LeetCode刷题笔记
leetcode
算法
职场和发展
LeetCode·每日一题·904.水果成篮·滑动窗口
链接:https://leetcode.cn/
problem
s/fruit-into-baskets/solutions/1739405/hd-by-xun-ge-v-nyer/来源:力扣(LeetCode
迅~
·
2023-10-21 21:03
LeetCode刷题笔记
leetcode
算法
职场和发展
LeetCode-153-寻找旋转排序数组中的最小值
示例1:输入:nums=[3,4,5,1,2]输出:1示例2:输入:nums=[4,5,6,7,0,1,2]输出:0来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s
刻苦驴哝
·
2023-10-21 21:14
[补题记录] Atcoder Beginner Contest 293(E)
URL:https://atcoder.jp/contests/abc293目录E
Problem
/题意Thought/思路Code/代码E
Problem
/题意给出A、X、M,求。
Varitall
·
2023-10-21 20:26
补题记录
深度优先
算法
2·19每日一词weather
:weather英英释义:todealsuccessfullywithadifficultsituatio3nora
problem
例句:Overthepast20years,Alibabahasweatheredstormsandscandals
邓雁chris
·
2023-10-21 20:07
CEC2013(MATLAB):白鲨优化算法(White Shark Optimizer,WSO)求解CEC2013(提供MATLAB代码及参考文献)
【精选】单目标应用:白鲨优化算法WSO求解单仓库多旅行商问题(Single-DepotMultipleTravellingSalesman
Problem
,SD-MTSP)提供Matlab代码_白鲨
IT猿手
·
2023-10-21 20:53
CEC
MATLAB
优化算法
matlab
算法
开发语言
CEC2013
进化计算
优化算法
MD-MTSP:粒子群优化算法PSO求解多仓库多旅行商问题MATLAB(可更改数据集,旅行商的数量和起点)
一、多仓库多旅行商问题MD-MTSP多旅行商问题(MultipleTravelingSalesman
Problem
,MTSP)是著名的旅行商问题(TravelingSalesman
Problem
,TSP
IT猿手
·
2023-10-21 20:13
TSP
MATLAB
单目标应用
算法
matlab
数据库
优化算法
进化计算
力扣刷题:合并两个有序链表
示例:输入:1->2->4,1->3->4输出:1->1->2->3->4->4来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/merge-two-sorted-lists
qqinghuo
·
2023-10-21 19:27
数据结构与算法
链表
leetcode
算法
数据结构
2018-07-07-最大公约数
题目:Easy
Problem
本题等到一个结论,故记下来:一个数对另一个数的取余:可以等效为:任意个乘数(全部相乘必须等于原数)分别取余的余数相乘再取余。
termanary
·
2023-10-21 19:20
Two Sum最优解法
链接:https://leetcode.com/
problem
s/two-sum思路:建立一个哈希表存放所有数字,迭代访问所有数字,每次都尝试取出另一个数字的位置,如果成功返回这两个数字位置,否则将数字的位置存到哈希表
LonnieQ
·
2023-10-21 18:42
LeetCode64. 最小路径和
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/minimum-path-sum思路分析:
码农在途
·
2023-10-21 18:41
LeetCode
LeetCode
LeetCode刷题实战344:反转字符串
今天和大家聊的问题叫做反转字符串,我们先来看题面:https://leetcode-cn.com/
problem
s/reverse-string/Writeafunctionthatreversesastring
程序IT圈
·
2023-10-21 16:56
算法
leetcode
isp
监督学习
nvidia
LeetCode刷题实战345:反转字符串中的元音字母
今天和大家聊的问题叫做反转字符串中的元音字母,我们先来看题面:https://leetcode-cn.com/
problem
s/reverse-vowels-of-a-string/Givenastrings
程序IT圈
·
2023-10-21 16:56
指针
字符串
toolbar
isp
leetcode
LeetCode 2316. 统计无向图中无法互相到达点对数::广度优先搜索(BFS)
【LetMeFly】2316.统计无向图中无法互相到达点对数:广度优先搜索(BFS)力扣题目链接:https://leetcode.cn/
problem
s/count-unreachable-pairs-of-nodes-in-an-undirected-graph
Tisfy
·
2023-10-21 16:19
题解
#
力扣LeetCode
leetcode
宽度优先
算法
题解
图
Quote about doing RESEARCH
Savage’sapproachtoresearch,viaMosteller:Assoonasa
problem
isstated,startrightawaytosolveit.Usesimpleexamples.Keepstartingfromfirstprinciples
爱米莉莉莉莉
·
2023-10-21 16:51
LeetCode 344. 反转字符串
题目:https://leetcode-cn.com/
problem
s/reverse-string/题解:双指针法。
PZHU_CG_csdn
·
2023-10-21 15:48
LeetCode
LeetCode
翻转字符串
LeetCode 344 反转字符串 -- 双指针法
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/reverse-string编写一个函数,其作用是将输入的字符串反转过来。
大家好我是Boger
·
2023-10-21 15:48
LeetCode刷题笔记
#
字符串类题目
leetcode
散列表
算法
LeetCode_344_反转字符串
题目链接https://leetcode-cn.com/
problem
s/reverse-string/解题思路双指针法一个指针记录当前元素的下标一个指针记录当前元素对应的倒数元素的下标因为一直数组长度
Fitz1318
·
2023-10-21 15:47
LeetCode学习之路
leetcode
字符串
leetcode刷题:二叉树05(翻转二叉树)
ClassNameInvertTree*@DescriotionTODO*@Authornitaotao*@Date2022/7/312:57*@Version1.0*https://leetcode.cn/
problem
s
涛涛英语学不进去
·
2023-10-21 15:51
二叉树
算法
java
leetcode
算法
java
LeetCode刷题实战545:二叉树的边界
今天和大家聊的问题叫做二叉树的边界,我们先来看题面:https://leetcode-cn.com/
problem
s/boundary-of-binary-tree/Givenabinarytree,returnt
程序IT圈
·
2023-10-21 15:48
算法
二叉树
java
leetcode
数据结构
每日一练_77 (2021.8.20) N皇后。
推荐一个详解:作者:carlsun-2链接:https://leetcode-cn.com/
problem
s/n-queens/solution/dai-ma-sui-xiang-lu-51-n-queenshui-su-fa
是壮壮没错了丶
·
2023-10-21 15:12
个人笔记本
菜鸟的每天一练。
java
【每日一题】【回溯backtrace】N皇后
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/n-queens著作权归领扣网络所有。商业转载请联系官方授权,非商
哥们要飞
·
2023-10-21 15:09
算法
java
开发语言
CUMTOJ数据结构实验考试17级(疑似)
道及2道以下的占3/67从作答成功率上看难度,由简单到难应该是:B≈A≈C>E>>D,如果机试不是自己很擅长的考试方式,可以先考虑自己熟悉哪道题,拿分概率更高,然后再考虑看看排名榜单,哪个简单去做哪个
problem
A
Redcarp
·
2023-10-21 15:34
Java SpringBootApplication 使用FeignClient baseClient 出错
Description:FieldbaseClientincom.rainbow.qa.controller.
Problem
Controllerrequiredabeanoftype'com.rabinbow.qa.client.BaseClient'thatcouldnotbefound.Action
码砖的人生
·
2023-10-21 14:38
【LeetCode】212. Word Search II 单词搜索 II(Hard)(JAVA)
【LeetCode】212.WordSearchII单词搜索II(Hard)(JAVA)题目地址:https://leetcode.com/
problem
s/word-search-ii/题目描述:Givenanmxnboardofcharactersandalistofstringswords
吴中乐
·
2023-10-21 13:29
Leetcode
字符串
leetcode
java
数据结构
面试
【LeetCode】 140. Word Break II 单词拆分 II(Hard)(JAVA)每日一题
【LeetCode】140.WordBreakII单词拆分II(Hard)(JAVA)题目地址:https://leetcode.com/
problem
s/word-break-ii/题目描述:Givenanon-emptystringsandadictionarywordDictcontainingalistofnon-emptywords
吴中乐
·
2023-10-21 13:29
Leetcode
字符串
leetcode
java
算法
面试
【LeetCode】 126. Word Ladder II 单词接龙 II(Hard)(JAVA)
【LeetCode】126.WordLadderII单词接龙II(Hard)(JAVA)题目地址:https://leetcode.com/
problem
s/word-ladder-ii/题目描述:Giventwowords
吴中乐
·
2023-10-21 13:29
Leetcode
leetcode
java
算法
数据结构
面试
LeetCode 212. Word Search II(dfs + 字典树)
题目来源:https://leetcode.com/
problem
s/word-search-ii/问题描述212.WordSearchIIHardGivena2Dboardandalistofwordsfromthedictionary
da_kao_la
·
2023-10-21 13:27
LeetCode
LeetCode
Hard
Java
dfs
字典树
LeetCode-049-字母异位词分组
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/group-anagrams/著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。
雄狮虎豹
·
2023-10-21 12:43
LeetCode-个人题解
hash
java
leetcode
算法
HackerRank:Max Array Sum Python3
题目https://www.hackerrank.com/challenges/max-array-sum/
problem
?
流浪山人
·
2023-10-21 10:41
1600*D. Maximum Sum on Even Positions(贪心)
Problem
-1373D-Codeforces解析:显然可以发现,翻转数量为奇数是不影响结果,所以需要反转偶数个连续数字。
陈进士学习
·
2023-10-21 10:13
codeforces
算法
c语言
开发语言
贪心
代码随想录算法训练营第二十九天|回溯算法part 5
来源:力扣(LeetCode)链接:https://leetcode.cn/
problem
s/non-decreasing-subsequences著作权归领扣网络所有。商业转载请联系
RicardoLee7
·
2023-10-21 09:40
算法
leetcode
数据结构
LeetCode每日一题5月11日 LeetCode50.Pow(x, n)
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/powx-n示例1:输入:2.00000,10输出:1024.00000示例2:输入:2.00000,10
青日五月
·
2023-10-21 09:00
LeetCode刷题记录
leetcode
算法
力扣 51. N 皇后
题目来源:https://leetcode.cn/
problem
s/n-queens/description/C++题解1:回溯法。
江湖人称贺行风
·
2023-10-21 09:27
开始C++吧
leetcode
算法
c++
回溯算法
力扣-51题 N皇后(C++)- 回溯
题目链接:https://leetcode-cn.com/
problem
s/n-queens/题目如下:classSolution{public:vector>solveNQueens(intn){vectorboard
JIngles123
·
2023-10-21 09:24
#
困难题
leetcode
c++
算法
力扣:51. N皇后
来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/n-queens1、思路暴力求解,回溯剪枝。穷举
meraki
·
2023-10-21 09:22
算法
leetcode
算法
c++
【MAC 上学习 C++】Day 26-1. 实验1-6 输出带框文字 (5 分)
实验1-6输出带框文字(5分)1.题目摘自https://pintia.cn/
problem
-sets/13/
problem
s/2562.题目内容本题要求编写程序,输出指定的带框文字。
RaRasa
·
2023-10-21 07:36
攻防世界-WEB:get_post
题目https://adworld.xctf.org.cn/challenges/
problem
-set-index?
只会拔网线
·
2023-10-21 06:41
攻防世界
安全
学习
[Cross-Age Reference Coding for Age-Invariant Face Recognition and Retrieval
PaperSite:https://bcsiriuschen.github.io/CARC/
Problem
DefinitionExistingdatasetscontainslittlevariationinaging.However
Limityoung
·
2023-10-21 05:58
图的遍历和最小生成树
注:此博客以P3371【模板】单源最短路径(弱化版)-洛谷|计算机科学教育新生态(luogu.com.cn)https://www.luogu.com.cn/
problem
/P3371P4779【模板】
bingweiyuan
·
2023-10-21 05:50
笔记
图论
算法
Leetcode Weekly Contest 109
933.NumberofRecentCallshttps://leetcode.com/
problem
s/number-of-recent-calls/description/这道题,维护一个队列,每当一个新的时间进来
西部小笼包
·
2023-10-21 04:05
LeetCode·3.无重复字符的最长子串·滑动窗口
链接:https://leetcode.cn/
problem
s/longest-substring-without-repeating-characters/solution/by-xun-ge-v-boaa
迅~
·
2023-10-21 03:15
LeetCode刷题笔记
leetcode
算法
职场和发展
上一页
108
109
110
111
112
113
114
115
下一页
按字母分类:
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
其他