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
【算法优选】 二分查找专题——壹
文章目录前言[二分查找](https://leetcode.cn/
problem
s/binary-search/)题目描述:算法流程:代码实现:[在排序数组中查找元素的第一个和最后一个位置](https
遇事问春风乄
·
2023-10-11 04:13
算法优选
算法
开发语言
Java
二分查找
Mummy Pig at Work
2018-03-31MummyPighelpsGeorgetosolvethe
problem
.Georgestillhidesunderthetable.Whatwasthe
problem
?
liqi_carol
·
2023-10-11 03:57
【面试算法——动态规划 21】不同的子序列(hard)&& 通配符匹配(hard)
链接::https://leetcode.cn/
problem
s/distinct-subsequences/示例1:输入:s=“rabbbit”,t=“rabbit”输出:3解释:如下所示,有3种可以从
Tom·猫
·
2023-10-11 03:22
动态规划刷题
算法
动态规划
1143. 最长公共子序列(C++实现)
1143.最长公共子序列https://leetcode.cn/
problem
s/longest-common-subsequence/intlongestCommonSubsequence(stringtext1
Kk_1025
·
2023-10-11 02:28
c++
开发语言
剑指 Offer 49. 丑数(C++实现)
剑指Offer49.丑数https://leetcode.cn/
problem
s/chou-shu-lcof/对每个丑数分别乘2、乘3、乘5即可得到后续丑数其中只需要对计算出来的丑数结果进行去重即可intnthUglyNumber
Kk_1025
·
2023-10-11 02:28
我的剑指刷题系列
算法
数据结构
c++
[Paper Reading] FaceTracer: A Search Engine for Large
PaperSite:https://www1.cs.columbia.edu/CAVE/publications/pdfs/Kumar_ECCV08.pdf
Problem
DefinitionUsingaimagesearchenginebasedentirelyonface
Limityoung
·
2023-10-11 02:48
Leetcode 289. Game of Life
Problem
AccordingtoWikipedia’sarticle:“TheGameofLife,alsoknownsimplyasLife,isacellularautomatondevisedbytheBritishmathematicianJohnHortonConwayin1970
小白菜又菜
·
2023-10-11 02:14
Leetcode
解题报告
入门题
Leetcode
解题报告
算法
Leetcode 290. Word Pattern
Problem
Givenapatternandastrings,findifsfollowsthesamepattern.Herefollowmeansafullmatch,suchthatthereisabijectionbetweenaletterinpatternandanon-emptywordins.AlgorithmUsethedictionarytosavethetwolist.Co
小白菜又菜
·
2023-10-11 02:14
Leetcode
解题报告
leetcode
算法
解题报告
Leetcode 292. Nim Game
Problem
YouareplayingthefollowingNimGamewithyourfriend:Initially,thereisaheapofstonesonthetable.Youandyourfriendwillalternatetakingturns
小白菜又菜
·
2023-10-11 02:41
Leetcode
解题报告
入门题
leetcode
算法
职场和发展
Codeforces Round #506 (Div. 3)(F. Multicolored Markers)
链接:https://codeforces.com/contest/1029/
problem
/F思路:i从1开始到根号(a+b)进行遍历,维护一个最小值,当某个值是a或b的因子时,更新这个最小值为(a或者
kimoyami
·
2023-10-11 01:22
懂你英语 Level3 Unit2 Part3 Listening - Paul's Overseas Trip 2
Another
problem
withthetripwashistravelschedule.HeneededtoextendhisstayinJapan.OneweekinJapanwasn'tenough.ThreeJapaneserestaurantownerswantedtomeetwithhim.Heneededmoretimeforthemeetingsthanacoupleofdays
可爱六六啊
·
2023-10-11 01:21
div 902 b ( 贪心
Problem
-B-Codeforces#includeusingnamespacestd;usingVI=vector;usingll=longlong;usingPII=pair;constintmod
stay fool
·
2023-10-11 00:32
基本算法
算法
c++
图论
归纳所猜半结论推出完整结论:CF1592F1
https://www.luogu.com.cn/
problem
/CF1592F1场上猜了个结论,感觉只会操作1。然后被样例1hack了。
Qres821
·
2023-10-10 23:50
二进制
贪心
LeetCode235——二叉搜索树的最近公共祖先
我的LeetCode代码仓:https://github.com/617076674/LeetCode原题链接:https://leetcode-cn.com/
problem
s/lowest-common-ancestor-of-a-binary-search-tree
清風逐尘乀
·
2023-10-10 23:09
LeetCode题解
LeetCode
二叉搜索树
最近公共祖先
LeetCode_235_二叉搜索树的最近公共祖先
题目链接https://leetcode.cn/
problem
s/lowest-common-ancestor-of-a-binary-search-tree/题目描述给定一个二叉搜索树,找到该树中两个指定节点的最近公共祖先
Fitz1318
·
2023-10-10 23:28
LeetCode学习之路
leetcode
算法
二叉树
java
式子表达ds类——多用位置/值域表示未知数+区间覆盖转区间加:CF407E
https://www.luogu.com.cn/
problem
/CF407E多用位置/值域表示未知数推出的式子中nnn表示长度,应该直接换成r−l+1r-l+1r−l+1区间覆盖转区间加推出的式子有mx
Qres821
·
2023-10-10 22:27
线段树
数据结构
popcount相关性质+从低往高的数位dp:CF1734F
https://www.luogu.com.cn/
problem
/CF1734Fpopcount有个性质:popcount(x)^popcount(y)=popcount(x^y)考虑数位dp,发现很难然后我们发现可以从低往高
Qres821
·
2023-10-10 22:27
二进制
数位dp
leetcode 412. Fizz Buzz 竟然没那么简单
4.如果n不满足上述条件,输出n;来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s/fizz-buzz在思考后
别说话装酷
·
2023-10-10 21:16
leetcode
算法
java
leetcode
算法
java
Search Insert Position
https://leetcode.com/
problem
s/search-insert-position给定一个有序数组nums,和一个target,问将这个target插入nums的位置;这里假设数组中没有重复值
默写年华Antifragile
·
2023-10-10 21:41
力扣第412. Fizz Buzz题
Problem
:412.FizzBuzz思路解题方法复杂度Code思路要设置列表类型Listanswer=newArrayList();还要用到for循环,其次,add是添加你的定义元素到第i个位置,i
爱学习编程的安某人
·
2023-10-10 21:08
小白入门
leetcode
算法
职场和发展
412. Fizz Buzz
412.FizzBuzzhttps://leetcode-cn.com/
problem
s/fizz-buzz/难度简单156给你一个整数n,找出从1到n各个整数的FizzBuzz表示,并用字符串数组answer
努力学习的梅子
·
2023-10-10 21:35
每日刷题
力扣
代码随想录算法训练营第60天|739. 每日温度、496.下一个更大元素 I
739.每日温度https://leetcode.cn/
problem
s/daily-temperatures/classSolution{public:vectordailyTemperatures(
鲁树人146
·
2023-10-10 21:16
算法
代码随想录算法训练营第62天|503.下一个更大元素II、42. 接雨水
503.下一个更大元素IIhttps://leetcode.cn/
problem
s/next-greater-element-ii/classSolution{public:vectornextGreaterElements
鲁树人146
·
2023-10-10 21:16
算法
leetcode
数据结构
代码随想录算法训练营第59天|647. 回文子串、516.最长回文子序列
647.回文子串https://leetcode.cn/
problem
s/palindromic-substrings/一开始我做的:classSolution{public:boolisSub(string
鲁树人146
·
2023-10-10 21:45
算法
代码随想录算法训练营第63天|84.柱状图中最大的矩形
84.柱状图中最大的矩形https://leetcode.cn/
problem
s/largest-rectangle-in-histogram/classSolution{public:intlargestRectangleArea
鲁树人146
·
2023-10-10 21:40
算法
leetcode
pte模拟考试_PTE考试:模拟题
RO:A、Thedatelineisnecessarytoavoidaconfusionthatwouldotherwiseresult.B、Thesame
problem
wouldariseiftwotravelersjourneyedinoppositedirectionstoapointontheoppositesideofthe
编程小族管
·
2023-10-10 20:05
pte模拟考试
Thinking Skills
makeconnections,makedecisions,andcreatenewideas.Youuseyourthinkingskillswhenyoutrytomakesenseofexperiences,solve
problem
s
静_静_
·
2023-10-10 20:58
LeetCode912. 排序数组(JavaScript手撕各种排序算法)
题目链接:https://leetcode-cn.com/
problem
s/sort-an-array/submissions/这是一道好题目,可以用来练习手撕各种排序算法,别直接调用api错过了这道好题哦
LiLi_code
·
2023-10-10 19:31
LeetCode
JavaScript
排序算法
算法
A game题解(博弈论)
题目网址:
Problem
-1543(nefu.edu.cn)TonyandMaclearegoodfriends.Onedaytheyjoinedabirthdaypartytogether.Fortunately
yusen_123
·
2023-10-10 18:49
数论
题解
算法
c++
【ACWing】892. 台阶-Nim游戏
题目地址:https://www.acwing.com/
problem
/content/894/有个nnn级台阶,每级台阶有若干石子,第iii级台阶上有aia_iai个石子(i≥1i\ge1i≥1)。
记录算法题解
·
2023-10-10 18:43
AC
数学
游戏
算法
892. 台阶-Nim游戏
https://www.acwing.com/
problem
/content/894/结论:假设n堆石子,石子数目分别是a1,a2,…,an,如果a1⊕a3⊕a5…⊕an≠0,先手必胜;否则先手必败。
幽殇默
·
2023-10-10 17:09
acwing
算法
Problem
2094 产生冠军
问题来源:
Problem
-2094问题描述:杭电OJ2094思路分析:这道题可以从拓扑图的思想出发,输了比赛则入度加1。比如a跟b比赛,a赢了b,则a指向b,b的入度就加1。
mwhMonkey
·
2023-10-10 17:13
基于
Problem
Solving with Algorithms and Data Structures using Python的学习记录(3)——Basic Data Structures
3.1.目标●了解抽象数据类型:栈stack、队列queue、双端队列deque和列表list;●用Python列表数据结构,来实现stack/queue/deque抽象数据类型的构建;●了解各种基本线性数据结构的性能和使用方法;●了解前缀、中缀和后缀表达式;●采用栈stack对后缀表达式进行求值;●采用栈stack将中缀表达式转换为后缀表达式;●采用队列queue进行基本的时间模拟;●能够明确问
HeatDeath
·
2023-10-10 17:37
数据结构与算法分析
python
数据结构
LeetCode-101. 对称二叉树
Problem
:101.对称二叉树文章目录思路解题方法Code结果思路看到这个题,想到的解题方法是使用递归实现。判断二叉树是否对称,需要判断根节点的左子树和右子树是否对称。
魚迹
·
2023-10-10 15:25
LeetCode题解
leetcode
算法
职场和发展
二维反射容斥:P9366
https://www.luogu.com.cn/
problem
/P9366构造循环矩阵,考虑反射容斥和将军饮马考虑二维不太好做,我们曼哈顿距离转切比雪夫距离,变成一维的情况。
Qres821
·
2023-10-10 15:15
容斥
反射容斥
注意分类讨论完整性:CF1371F
https://www.luogu.com.cn/
problem
/CF1371F此题要分类讨论完全容易漏掉>>>>>usingnamespacestd;//#defineintlonglonginlineintread
Qres821
·
2023-10-10 15:28
线段树
IDEA 导入别人的javaweb项目进行部署
总是报encountered
problem
这样的提示问题。我不部署任何项目,直接启动本
相与还
·
2023-10-10 14:54
java
intellij-idea
tomcat
java
链表复盘
week2-链表复盘Day1:https://leetcode-cn.com/
problem
s/design-linked-list/采用单链表,然后试了js、C#两套代码执行通过,提交都没有通过,最后看了不通过的测试用例是因为插入了
TinkleJane
·
2023-10-10 12:36
The Summary Journal of Semester 1 (Dec, 2020)
[
Problem
s]:缺乏主动学习的积极性,在听听力的时候还是有点困难,不认真做课后题![Suggestions]:多主动学习英语,认真完成课后作业!2)在这个学期的复盘日志中,
行管一石将
·
2023-10-10 07:09
力扣 1206. 设计跳表 跳表
https://leetcode-cn.com/
problem
s/design-skiplist/思路:原理参见。
csu_xiji
·
2023-10-10 06:56
力扣
跳表
1631. 最小体力消耗路径
1631.最小体力消耗路径原题链接:完成情况:参考代码:原题链接:1631.最小体力消耗路径https://leetcode.cn/
problem
s/path-with-minimum-effort/description
Wzideng
·
2023-10-10 05:44
算法知识
#
LeetCode题解
java学习
java
算法
数据结构
leetcode73.——矩阵置零(Javascript)
一、题目地址https://leetcode-cn.com/
problem
s/set-matrix-zeroes/二、思路地址https://www.bilibili.com/video/BV1zJ411v7r6
深漂程序员小庄
·
2023-10-10 05:06
数据结构和算法
javascript
leetcode
算法
Leetcode73. 矩阵置零
0,1,2,0],[3,4,5,2],[1,3,1,5]]输出:[[0,0,0,0],[0,4,5,0],[0,3,1,0]]来源:力扣(LeetCode)链接:https://leetcode-cn.com/
problem
s
sweetpotatobabe
·
2023-10-10 05:05
Leetcode二维数组
矩阵
算法
Leetcode 263. Ugly Number
Problem
Anuglynumberisapositiveintegerwhoseprimefactorsarelimitedto2,3,and5.Givenanintegern,returntrueifnisanuglynumber.AlgorithmJustdividethenumberwith2,3and5
小白菜又菜
·
2023-10-10 05:02
Leetcode
解题报告
入门题
leetcode
算法
职场和发展
Leetcode 268. Missing Number
Problem
Givenanarraynumscontainingndistinctnumbersintherange[0,n],returntheonlynumberintherangethatismissingfromthearray.AlgorithmSumallthenumbersasxxxandusen
小白菜又菜
·
2023-10-10 05:02
Leetcode
解题报告
入门题
leetcode
算法
职场和发展
Leetcode 283. Move Zeroes
Problem
Givenanintegerarraynums,moveall0’stotheendofitwhilemaintainingtherelativeorderofthenon-zeroelements.Notethatyoumustdothisin-placewithoutmakingacopyofthearray.AlgorithmSimulate
小白菜又菜
·
2023-10-10 04:58
Leetcode
解题报告
入门题
leetcode
解题报告
lmproperly specified vM option.To fix the
problem
, edit your JVM options andremove the options ...
lmproperlyspecifiedVMoption.Tofixthe
problem
,edityourJVMoptionsandremovetheoptionsthatareobsoleteornotsupportedbythecurrentversionoftheJW.FailedtocreateJVM.JVMPath
erlands
·
2023-10-10 04:23
java
jvm
java
linux
中原焦点团队王敏燕初级232分享第298天,约练90本周0
一、SFBT的重要基本信念包括9条(Trepper等,2010):1.基于建构解决之道(Solutionbuilding),而非问题解决(
Problem
solving)。
娴子妹妹
·
2023-10-10 04:00
vscode package.json文件开头的{总是提升警告
警告如下
Problem
sloadingreference'https://json.schemastore.org/stylelintrc.json':Unabletoloadschemafrom'https
奇怪的点
·
2023-10-10 01:47
vscode
json
ide
【刷题】只出现一次的数字(三种解法)
异或运算解法二:集合类Set集合Map集合链接:https://www.nowcoder.com/share/jump/2008263481696810321082https://leetcode.cn/
problem
s
德尔logic
·
2023-10-10 01:30
数据结构
java
开发语言
数据结构
intellij-idea
算法
上一页
120
121
122
123
124
125
126
127
下一页
按字母分类:
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
其他