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
given
#3 Longest Substring Without Repeating Characters
问题:Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Examples:
Given
"abcabcbb"
insoPlus
·
2019-12-12 03:08
[LeeCode238] Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
王淞岩
·
2019-12-11 22:06
leetcode-math
ReverseInteger/** *
Given
a 32-bit signed integer, reverse digits of an integer. * */public class Lc7
小傻孩丶儿
·
2019-12-10 15:00
Group the People
Given
the Group Size They Belong To
TherearenpeoplewhoseIDsgofrom0ton-1andeachpersonbelongsexactlytoonegroup.GiventhearraygroupSizesoflengthntellingthegroupsizeeachpersonbelongsto,returnthegroupsthereareandthepeople'sIDseachgroupinclude
琴影
·
2019-12-09 14:00
Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
石榴蒂凡尼_21e4
·
2019-12-08 08:55
100DaysLeetcode(2)
returnindicesofthetwonumberssuchthattheyadduptoaspecifictarget.Youmayassumethateachinputwouldhaveexactlyonesolution,andyoumaynotusethesameelementtwice.Example:
Given
叶孤城___
·
2019-12-08 03:46
300. Longest Increasing Subsequence
DescriptionGivenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
Nancyberry
·
2019-12-07 20:26
Lintcode84 Single Number |||solution 题解
【题目描述】
Given
2*n+2numbers,everynumbersoccurstwiceexcepttwo,findthem.给出2*n+2个的数字,除其中两个数字之外其他每个数字均出现两次,找到这两个数字
程风破浪会有时
·
2019-12-07 16:49
300. Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
exialym
·
2019-12-06 21:25
LeetCode笔记:238. Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
Cloudox_
·
2019-12-06 15:05
49. Group Anagrams
题目Givenanarrayofstrings,groupanagramstogether.Forexample,
given
:["eat","tea","tan","ate","nat","bat"],
Al73r
·
2019-12-06 09:45
86. Partition List
partitionitsuchthatallnodeslessthanxcomebeforenodesgreaterthanorequaltox.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
1
greatfulltime
·
2019-12-06 07:46
228. Summary Ranges
Givenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Forexample,
given
[0,1,2,4,5,7],return
exialym
·
2019-12-02 10:44
8、Longest Consecutive Sequence(Hard)
ProblemDescriptionGivenanunsortedarrayofintegers,findthelengthofthelongestconsecutiveelementssequence.Forexample,
Given
一念之见
·
2019-12-02 06:40
56. Merge Intervals
DescriptionGivenacollectionofintervals,mergealloverlappingintervals.Forexample,
Given
[1,3],[2,6],[8,10
Nancyberry
·
2019-12-02 03:03
334. Increasing Triplet Subsequence
QuestionGivenanunsortedarrayreturnwhetheranincreasingsubsequenceoflength3existsornotinthearray.Formallythefunctionshould:Returntrueifthereexists*i,j,k*suchthatarr[i]
given0
FlynnLWang
·
2019-12-02 02:43
26. Swap Nodes in Pairs
题目Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
时光杂货店
·
2019-12-01 19:29
347. Top K Frequent Elements
Givenanon-emptyarrayofintegers,returnthekmostfrequentelements.Forexample,
Given
[1,1,1,2,2,3]andk=2,return
sherwin29
·
2019-12-01 18:32
215. Kth Largest Element in an Array
Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Forexample,
Given
sherwin29
·
2019-12-01 16:49
Leetcode 143. Reorder List
Ln,reorderitto:L0→Ln→L1→Ln-1→L2→Ln-2→…Youmustdothisin-placewithoutalteringthenodes'values.Forexample,
Given
ShutLove
·
2019-12-01 10:30
214. Shortest Palindrome
youareallowedtoconvertittoapalindromebyaddingcharactersinfrontofit.Findandreturntheshortestpalindromeyoucanfindbyperformingthistransformation.例子
Given
"aacecaaa
RobotBerry
·
2019-12-01 09:47
Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Forexample,
Given
1
蓝眼睛灰
·
2019-12-01 03:00
42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
Al73r
·
2019-12-01 03:24
Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
BigBig_Fish
·
2019-11-30 22:32
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
奇得隆东枪
·
2019-11-30 15:59
42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.rainwatertrap.pngForexample,
Given
sherwin29
·
2019-11-30 06:39
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
飞飞廉
·
2019-11-30 05:54
251. Flatten 2D Vector
DescriptionImplementaniteratortoflattena2dvector.Forexample,
Given
2dvector=[[1,2],[3],[4,5,6]]BycallingnextrepeatedlyuntilhasNextreturnsfalse
Nancyberry
·
2019-11-30 03:26
238. Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
AlanGuo
·
2019-11-30 02:56
42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
蓝眼睛灰
·
2019-11-29 20:13
【2014英语】第三段知识点
theirownfortunesstillfeelprettygood.尽管媒体的报道耸人听闻,消费者说他们不绝望,因为他们感觉写作句型Despite名词(组),主谓...Inspiteof名词(组),主谓...
Given
lengol
·
2019-11-29 13:40
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
BeijingIamback
·
2019-11-29 04:27
免费了!切图标记外挂神器AssistorPS深入解读(下)
作者:
Given
在切图标记外挂AssistorPS深入解读(上)中,我给大家介绍了即将免费的切图标记外挂AssistorPS强大的标记功能,然后,这个神器的功能仅仅如此?
笔戈科技
·
2019-11-29 03:09
[Leetcode] 71. Restore IP Addresses
Givenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:
Given
时光杂货店
·
2019-11-28 08:16
[Leetcode] 70. Partition List
partitionitsuchthatallnodeslessthanxcomebeforenodesgreaterthanorequaltox.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
1
时光杂货店
·
2019-11-28 06:51
12、Trapping Rain Water
ProblemDescriptionGivennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
一念之见
·
2019-11-28 06:49
[Leetcode] 78. Reorder List
Ln,reorderitto:L0→Ln→L1→Ln-1→L2→Ln-2→…Youmustdothisin-placewithoutalteringthenodes'values.Forexample,
Given
时光杂货店
·
2019-11-28 05:45
42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
juexin
·
2019-11-28 05:25
Leetcode 41. First Missing Positive
题目Givenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
[1,2,0]return3,and[3,4
persistent100
·
2019-11-28 03:20
[leetcode-two pointer] Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
jowishu
·
2019-11-28 03:06
42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
Jeanz
·
2019-11-28 01:47
First Missing Positive
FirstMissingPositiveDifficulty:HardGivenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
CarlBlack
·
2019-11-27 19:11
[Leetcode] 119. Find first positive
题目Givenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
[1,2,0]return3,and[3,4
时光杂货店
·
2019-11-27 18:07
[LeetCode] 41. First Missing Positive
Givenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
[1,2,0]return3,and[3,4
xxx亦凡桑
·
2019-11-27 17:38
[CF1039D] You Are
Given
a Tree
问题简述有一棵n个节点的树其中一个简单路径的集合被称为k合法当且仅当:树的每个节点至多属于其中一条路径,且每条路径恰好包含k个点对于k∈[1,n],求出k合法路径集合的最多路径数即:设k合法路径集合为S,求最大的|S|样例输入61223241556样例输出622110说明样例如下解析首先,\(O(n^2)\)的暴力做法可以用贪心,对于每一棵子树,能够在子树内拼成长度为k的链就拼,返回剩下的最长的链
LSlzf
·
2019-11-17 21:00
Leetcode 25/24 - Reverse Nodes in k-Group
举例:Example:
Given
1->2->
以终为始
·
2019-11-17 10:00
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
Jeanz
·
2019-11-08 06:57
Leetcode-Arrays(2017-06-17)
SummaryRanges(228)Givenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Forexample,
given
raincoffee
·
2019-11-08 02:47
LeetCode Tag: Back tracking
LeetCode93RestoreIPAddressesDescriptionGivenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:
Given
Persistence2
·
2019-11-08 02:27
92. Reverse Linked List II
Reversealinkedlistfrompositionmton.Doitin-placeandinone-pass.Forexample:
Given
1->2->3->4->5->NULL,m=2andn
billyzhang
·
2019-11-07 23:30
上一页
28
29
30
31
32
33
34
35
下一页
按字母分类:
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
其他