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
Explanation
Longest Continuous Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestcontinuousincreasingsubsequence(subarray).Example1:Input:[1,3,5,4,7]Output:3
Explanation
BLUE_fdf9
·
2020-03-16 08:03
377. Combination Sum IV
article/details/52064134https://discuss.leetcode.com/topic/52302/1ms-java-dp-solution-with-detailed-
explanation
sherwin29
·
2020-03-16 00:18
Leetcode - 526. Beautiful Arrangement
Input:2Output:2
Explanation
:Thefirstbeautifularrangementis[1,2]:Numberatthe1stposition(i=1)is1,and1isdivisiblebyi
KkevinZz
·
2020-03-15 20:28
Eight Secrets to Success
写这个不是出于自愿,这是老师布置的一项作业:看完Ted的演讲,自己想一想为什么这些要素可以使我们走向成功,用一句话写出你的
explanation
.写完后,想与大家分享一下。
媛木子的盛夏光阴
·
2020-03-15 19:44
Lettcode 数组题
SummaryRangesInput:[0,1,2,4,5,7]Output:["0->2","4->5","7"]
Explanation
:0,1,2formacontinuousrange;4,5formacontinuousrange
vckah
·
2020-03-12 09:51
Number of Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthenumberoflongestincreasingsubsequence.Example1:Input:[1,3,5,4,7]Output:2
Explanation
BLUE_fdf9
·
2020-03-11 14:03
525. Contiguous Array
DescriptionGivenabinaryarray,findthemaximumlengthofacontiguoussubarraywithequalnumberof0and1.Example1:Input:[0,1]Output:2
Explanation
Nancyberry
·
2020-03-09 04:11
414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
西土城小羊
·
2020-03-08 13:22
LeetCode笔记:498. Diagonal Traverse
returnallelementsofthematrixindiagonalorderasshowninthebelowimage.Example:Input:[[1,2,3],[4,5,6],[7,8,9]]Output:[1,2,4,7,5,3,6,8,9]
Explanation
Cloudox_
·
2020-03-08 07:08
LeetCode-414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
冷灬叶枫
·
2020-03-08 04:39
69. Sqrt(x)
Computeandreturnthesquarerootofx.xisguaranteedtobeanon-negativeinteger.Example1:Input:4Output:2Example2:Input:8Output:2
Explanation
衣介书生
·
2020-03-07 01:47
算法题--寻找括号组成的字符串中最长合法子串的长度
'and')',findthelengthofthelongestvalid(well-formed)parenthesessubstring.Example1:Input:"(()"Output:2
Explanation
岁月如歌2020
·
2020-03-04 21:39
637. Average of Levels in Binary Tree
DescriptionGivenanon-emptybinarytree,returntheaveragevalueofthenodesoneachlevelintheformofanarray.Example1:Input:treeOutput:[3,14.5,11]
Explanation
Nancyberry
·
2020-03-03 05:25
637. Average of Levels in Binary Tree
returntheaveragevalueofthenodesoneachlevelintheformofanarray.Example1:Input:3/\920/\157Output:[3,14.5,11]
Explanation
caisense
·
2020-03-02 08:38
怎样应对IT面试与笔试-(十)
DynamicProgramming(动态规划)53.MaximumSubarray最大和子数组(元素连续)例如题目中给出的例子:Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
Ice_Frog
·
2020-03-02 05:28
Chapter 1 Ⅰ~Ⅴ
Mr.JusticeWargrave,latelyretiredfromthebench,puffedatacigarandrananinterestedeyethroughthepoliticalnewsintheTimes.
explanation
草叮
·
2020-03-01 13:20
414. Third Maximum Number 第三大元素
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
这就是一个随意的名字
·
2020-02-28 08:03
Leetcode - 494. Target Sum
Example1:Input:numsis[1,1,1,1,1],Sis3.Output:5
Explanation
:-1+1+1+1+1=3+1-1+1+1+1=3+1+1-1+1+1=3+1+1+1-
KkevinZz
·
2020-02-26 13:39
Chapter13 Ⅱ~Chapter14 Ⅰ
explanation
:abadlybehavedchilde.g.aspoiledbrat2.draughtThedraughtfromthewindowcaughttheflameofthecandle.
explanation
草叮
·
2020-02-24 10:25
LeetCode笔记:637. Average of Levels in Binary Tree
Givenanon-emptybinarytree,returntheaveragevalueofthenodesoneachlevelintheformofanarray.Example1:Input:Output:[3,14.5,11]
Explanation
Cloudox_
·
2020-02-24 07:24
Chapter6 Ⅵ~Ⅳ
desultoryGeneralMacarthurandthejudgehadbeenpacingtheterraceoutside,exchangingdesultorycommentsonthepoliticalsituation.
explanation
草叮
·
2020-02-23 22:34
637. Average of Levels in Binary Tree 二叉树每层平均值
Example1:Input:3/\920/\157Output:[3,14.5,11]
Explanation
:Theaveragevalueofnodesonlevel0is
这就是一个随意的名字
·
2020-02-22 19:27
[SwapLine]56. Merge Intervals
mergealloverlappingintervals.Example1:Input:[[1,3],[2,6],[8,10],[15,18]]Output:[[1,6],[8,10],[15,18]]
Explanation
野生小熊猫
·
2020-02-21 22:40
3-longest-substring-without-repeating Characters
*Example1:**Input:*”abcabcbb”*Output:*3*
Explanation
:*Theansweris“abc”,withthelengtho
wangyuan302
·
2020-02-21 13:50
BFS
WordLadderInput:beginWord="hit",endWord="cog",wordList=["hot","dot","dog","lot","log","cog"]Output:5
Explanation
猛男向前冲冲冲
·
2020-02-21 08:41
525. Contiguous Array
Givenabinaryarray,findthemaximumlengthofacontiguoussubarraywithequalnumberof0and1.Example1:Input:[0,1]Output:2
Explanation
DrunkPian0
·
2020-02-20 22:46
程序员超实用进阶工具网站整理,让代码创造无限的可能
而且有QuickReference来帮助你记忆正则表达式的规则和
Explanation
对你的正则表达式进行解释。重要的是,支持直接生成多种语言的代码。
工程狮一图
·
2020-02-19 03:42
673. Number of Longest Increasing Subsequence
DescriptionGivenanunsortedarrayofintegers,findthenumberoflongestincreasingsubsequence.Example1:Input:[1,3,5,4,7]Output:2
Explanation
Nancyberry
·
2020-02-18 12:36
Largest Palindrome Product
Findthelargestpalindromemadefromtheproductoftwon-digitnumbers.Sincetheresultcouldbeverylarge,youshouldreturnthelargestpalindromemod1337.Example:Input:2Output:987
Explanation
Jarhot
·
2020-02-17 11:41
123 Best Time To Buy And Sell Stock III
Sayyouhaveanarrayforwhichthenumberielementisthepriceofagivenstockondayi.Designanalgorithmtofindthemaximumprofit.Youmaycompleteatmosttwotransactions.Example:Input:[3,3,5,0,0,3,1,4]Output:6
Explanation
烟雨醉尘缘
·
2020-02-16 15:58
647. Palindromic Substrings
最大回文串正好让我回顾一下DP,动态规划比较经典的题目Output:3
Explanation
:Threepalindromicstrings:"a","b","c".Input:"aaa"Output:
腹黑君
·
2020-02-16 11:51
96. Unique Binary Search Trees
Example:Input:3Output:5
Explanation
:Givenn=3,thereareatotalof5uniqueBST's:13321\///\\321132//\\2123思路:
littledy
·
2020-02-16 11:00
[LC] 451. Sort Characters By Frequency
Givenastring,sortitindecreasingorderbasedonthefrequencyofcharacters.Example1:Input:"tree"Output:"eert"
Explanation
xuan_abc
·
2020-02-16 00:00
32. Longest Valid Parentheses
'and')',findthelengthofthelongestvalid(well-formed)parenthesessubstring.Example1:Input:"(()"Output:2
Explanation
hyx1
·
2020-02-14 20:00
Chapter3 Ⅲ~Chapter4 Ⅲ
scrawlInMissBrent'sletter,thoughthesignatureofthesurnameisamerescrawltheChristiannamesarereasonablyclear...
explanation
草叮
·
2020-02-14 14:15
【leetcode】(python) 56. Merge Intervals解题思路
mergealloverlappingintervals.Example1:Input:[[1,3],[2,6],[8,10],[15,18]]Output:[[1,6],[8,10],[15,18]]
Explanation
梦vctor
·
2020-02-14 09:52
56. Merge Intervals 合并区间
mergealloverlappingintervals.Example1:Input:[[1,3],[2,6],[8,10],[15,18]]Output:[[1,6],[8,10],[15,18]]
Explanation
xingzai
·
2020-02-13 16:52
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Givenanarrayofintegersarrandtwointegerskandthreshold.Returnthenumberofsub-arraysofsizekandaveragegreaterthanorequaltothreshold.Example1:Input:arr=[2,2,2,2,5,5,5,8],k=3,threshold=4Output:3
Explanation
Schwifty
·
2020-02-13 01:00
LeetCode 53. Maximum Subarray
ExampleInput:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
:[4,-1,2,1]hasthelargestsum=6.思路这个题其实解法挺多按时间复杂度从差到优一共有四种
_Zy
·
2020-02-12 13:57
Add_Two_Numbers python 求解
leetcode传送门例子:Input:(2->4->3)+(5->6->4)Output:7->0->8
Explanation
:342+465=807.大体意思就是从前向后做加法,逢十进一。
vckah
·
2020-02-11 18:17
[LeetCode]1281. Subtract the Product and Sum of Digits of an Integer
Givenanintegernumbern,returnthedifferencebetweentheproductofitsdigitsandthesumofitsdigits.Example1:Input:n=234Output:15
Explanation
界757
·
2020-02-11 16:00
96. Unique Binary Search Trees
Example:Input:3Output:5
Explanation
:Givenn=3,thereareatotalof5uniqueBST's:13321\///\\321132//\\2123解题思路刚看到这一题的时候一点思路没有
随笔随风
·
2020-02-10 15:34
[LeetCode] 96. Unique Binary Search Trees
例子,Example:Input:3Output:5
Explanation
:Givenn=3,thereareatotalof5uniqueBST's:13321\///\\321132//\\2123
朝鲜冷面杀手
·
2020-02-10 13:00
1342. Number of Steps to Reduce a Number to Zero
returnthenumberofstepstoreduceittozero.Ifthecurrentnumberiseven,youhavetodivideitby2,otherwise,youhavetosubtract1fromit.Example1:Input:num=14Output:6
Explanation
Schwifty
·
2020-02-10 06:00
1.24三峡广场GRE全程班 1.29第6节课笔记大纲
LogicalAnalysis逻辑分析Synonymy同义Antonymy反义Causality因果关系Transition转折关系Coordination并列关系
Explanation
解释关系Synonymy
AndrewWLW
·
2020-02-09 23:53
2、Add Two Numbers
ExampleInput:(2->4->3)+(5->6->4)Output:7->0->8
Explanation
:342+465=807.难点1、ListNode的操作。2、考虑进位的问题。
小鲜贝
·
2020-02-09 21:08
Python微信公众号后台开发<003>:自定义菜单
开发文档:https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/
Explanation
_of_inte
Python数据分析实战
·
2020-02-09 13:46
Average of Levels in Binary Tree
returntheaveragevalueofthenodesoneachlevelintheformofanarray.Example1:Input:3/\920/\157Output:[3,14.5,11]
Explanation
BLUE_fdf9
·
2020-02-09 09:08
sqrt(x)
Computeandreturnthesquarerootofx.xisguaranteedtobeanon-negativeinteger.Example:Input:4Output:2Example2:Input:8Output:2
Explanation
BLUE_fdf9
·
2020-02-08 19:06
Sort Characters By Frequency
*Example1:*Input:"tree"Output:"eert"
Explanation
:'e'appearstwicewhile'r'and't'bothappearonce.So'e'mustappearbeforeboth'r'and't
BLUE_fdf9
·
2020-02-08 15:34
上一页
14
15
16
17
18
19
20
21
下一页
按字母分类:
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
其他