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
Leetcode ☞ 24. Swap Nodes in Pairs ☆
TotalSubmissions: 243534 Difficulty: MediumGivenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
Dr_Unknown
·
2016-03-04 11:00
Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
KickCode
·
2016-03-04 08:42
双指针
[LeetCode238]Product of Array Except Self
isequaltotheproductofalltheelementsof nums except nums[i].Solveit withoutdivision andinO(n).Forexample,
given
zhangbaochong
·
2016-03-03 14:00
lintcode-easy-Plus One
Givenanon-negativenumberrepresentedasanarrayofdigits,plusonetothenumber.Thedigitsarestoredsuchthatthemostsignificantdigitisattheheadofthelist.
Given
哥布林工程师
·
2016-03-03 13:00
LeetCode Graph Valid Tree
原题链接在这里:https://leetcode.com/problems/graph-valid-tree/题目:
Given
n nodeslabeledfrom 0 to n-1 andalistofundirectededges
Dylan_Java_NYC
·
2016-03-03 11:00
leetcode第24题——**Swap Nodes in Pairs
题目Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas
buptlrw
·
2016-03-03 09:00
java
LeetCode
python
lintcode-easy-Partition List
comebeforenodesgreaterthanorequalto x.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
哥布林工程师
·
2016-03-03 09:00
LeetCode283:Move Zeros
writeafunctiontomoveall 0'stotheendofitwhilemaintainingtherelativeorderofthenon-zeroelements.Forexample,
given
EvansYang
·
2016-03-03 01:00
leetcode 214. Shortest Palindrome
youareallowedtoconvertittoapalindromebyaddingcharactersinfrontofit.Findandreturntheshortestpalindromeyoucanfindbyperformingthistransformation.Forexample:
Given
"aacecaaa
u014568921
·
2016-03-02 23:00
LeetCode
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas
水果拼盘武士G
·
2016-03-02 23:00
【LeetCode OJ 268】Missing Number
Givenanarraycontaining n distinctnumberstakenfrom 0,1,2,...,n,findtheonethatismissingfromthearray.Forexample,
Given
xujian_2014
·
2016-03-02 21:00
LeetCode
LeetCode258:Add Digits
Forexample:
Given
num=38,theprocessislike: 3+8=11, 1+1=2.Since 2 hasonlyonedigit,returnit.Followup:Couldyoudoitwith
EvansYang
·
2016-03-02 20:00
LeetCode:Spiral Matrix II
: MediumGivenaninteger n,generateasquarematrixfilledwithelementsfrom1to n2 inspiralorder.Forexample,
Given
itismelzp
·
2016-03-02 15:00
LeetCode
Matrix
II
Spiral
【LeetCode OJ 061】Rotate List
problems/rotate-list/题目:Givenalist,rotatethelisttotherightby k places,where k isnon-negative.Forexample:
Given
xujian_2014
·
2016-03-01 15:00
LeetCode
Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
KickCode
·
2016-03-01 14:22
动态规划
22. Generate Parentheses
Given
n pairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample
水果拼盘武士G
·
2016-02-29 23:00
Group Anagrams
题目:Givenanarrayofstrings,groupanagramstogether.Forexample,
given
: ["eat","tea","tan","ate","nat","bat"
Tec小白
·
2016-02-29 20:00
Maximal Square,
Given
a 2D binary matrix filled with 0's and 1's, find the largest squar
MaximalSquare 30:00 开始计时 Givena2Dbinarymatrixfilledwith0'sand1's,findthelargestsquarecontainingall1'sandreturnitsarea. 您在真实的面试中是否遇到过这个题?Yes 样例 标签 笔记 Forexample,giventhefollowingmatrix: 10100 10111
u010002184
·
2016-02-29 19:00
算法
LeetCode Group Anagrams
Givenanarrayofstrings,groupanagramstogether.Forexample,
given
: ["eat","tea","tan","ate","nat","bat"],
wuli2496
·
2016-02-29 17:00
300. Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
偏爱纯白色
·
2016-02-29 15:00
UVA11181Probability|
Given
(条件概率)
题目链接紫书P327题意:有n个人准备去超市逛,其中第i个人买东西的概率是Pi。逛完以后你得知有r个人买了东西。根据这一信息,计算每个人实际买东西的概率。输入n(1 2#include 3#include 4#include 5usingnamespacestd; 6constintMax=30; 7doublep[Max],sum[Max],tot; 8intn,r; 9intv
zhaop
·
2016-02-29 11:00
leetcode第22题——**Generate Parentheses
题目
Given
n pairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample
buptlrw
·
2016-02-29 09:00
java
LeetCode
python
[leetcode] 49. Group Anagrams 解题报告
题目链接:https://leetcode.com/problems/anagrams/Givenanarrayofstrings,groupanagramstogether.Forexample,
given
qq508618087
·
2016-02-29 05:00
LeetCode
String
hash
Facebook
Amazon
Spiral Matrix II
题目:Givenaninteger n,generateasquarematrixfilledwithelementsfrom1to n2 inspiralorder.Forexample,
Given
Tec小白
·
2016-02-28 22:00
Reverse Linked List II
题目:Reversealinkedlistfromposition m to n.Doitin-placeandinone-pass.Forexample:
Given
1->2->3->4->5->NULL
Tec小白
·
2016-02-27 23:00
101.Remove Duplicates from Sorted List II
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonly distinct numbersfromtheoriginallist.Forexample,
Given
u010339647
·
2016-02-27 21:00
《leetCode》:Flatten Binary Tree to Linked List
Forexample,
Given
1 /\ 25 /\\ 346 Theflattenedtreeshouldlooklike: 1 \ 2 \ 3 \ 4 \ 5 \ 6 clicktoshowhints
u010412719
·
2016-02-27 18:00
LeetCode
LinkedList
flatten
BinaryTree
19. Remove Nth Node From End of List
Note:
Given
水果拼盘武士G
·
2016-02-26 23:00
yield self和instance_eval用法区别
classFoo definitialize(&block) instance_eval(&block)ifblock_
given
?
c3tc3tc3t
·
2016-02-26 20:00
leetcode86. Partition List
partitionitsuchthatallnodeslessthanxcomebeforenodesgreaterthanorequaltox.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
1
mingtianhuihaode
·
2016-02-26 15:57
leetcode
java
代码
leetcode
【LEETCODE】86- Partition List [Python]
xcomebeforenodesgreaterthanorequaltox.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
1
aliceyangxi1987
·
2016-02-26 10:00
LeetCode
python
Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
KickCode
·
2016-02-26 08:29
数组
LeetCode 41. First Missing Positive
Qustion:Givenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
[1,2,0]return3
暖日初升
·
2016-02-26 07:00
92. Reverse Linked List II
Reversealinkedlistfrompositionmton.Doitin-placeandinone-pass.Forexample:
Given
1->2->3->4->5->NULL,m=2andn
BeijingIamback
·
2016-02-25 21:35
【LEETCODE】82- Remove Duplicates from Sorted List II [Python]
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Forexample,
Given
1
aliceyangxi1987
·
2016-02-25 19:00
LeetCode
python
leetcode笔记--Summary Ranges
题目:难度(Easy)Givenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Forexample,
given
[0,1,2,4,5,7
u010366748
·
2016-02-25 15:00
LeetCode
array
python
LeetCode Flatten 2D Vector
https://leetcode.com/problems/flatten-2d-vector/题目:Implementaniteratortoflattena2dvector.Forexample,
Given
2dvector
Dylan_Java_NYC
·
2016-02-25 11:00
[leetcode] 128. Longest Consecutive Sequence 解题报告
longest-consecutive-sequence/Givenanunsortedarrayofintegers,findthelengthofthelongestconsecutiveelementssequence.Forexample,
Given
qq508618087
·
2016-02-25 02:00
LeetCode
array
[leetcode] Burst Balloons
题目描述:
Given
n balloons,indexedfrom 0 to n-1.Eachballoonispaintedwithanumberonitrepresentedbyarray nums.Youareaskedtoburstalltheballoons.Iftheyouburstballoon
fanoluo
·
2016-02-25 00:00
【LEETCODE】143- Reorder List [Python]
Ln,reorderitto:L0→Ln→L1→Ln-1→L2→Ln-2→…Youmustdothisin-placewithoutalteringthenodes'values.Forexample,
Given
aliceyangxi1987
·
2016-02-24 16:00
LeetCode
python
【LEETCODE】61- Rotate List [Python]
Givenalist,rotatethelisttotherightbykplaces,wherekisnon-negative.Forexample:
Given
1->2->3->4->5->NULLandk
Alice熹爱学习
·
2016-02-24 12:49
LEETCODE
PYTHON
leetcode
【LEETCODE】61- Rotate List [Python]
Givenalist,rotatethelisttotherightbykplaces,wherekisnon-negative.Forexample:
Given
1->2->3->4->5->NULLandk
aliceyangxi1987
·
2016-02-24 12:00
LeetCode
python
49. Group Anagrams
66408 TotalSubmissions: 249691 Difficulty: MediumGivenanarrayofstrings,groupanagramstogether.Forexample,
given
EbowTang
·
2016-02-23 23:00
LeetCode
C++
算法
哈希
面试
yum小技巧
使用选项provides去发现命令的安装包# yum --help | grep providesprovides Find what package provides the
given
esoul
·
2016-02-23 14:26
yum
package
provides
工具
yum小技巧
使用选项provides去发现命令的安装包# yum --help | grep provides provides Find what package provides the
given
esoul
·
2016-02-23 14:26
yum
package
provides
[LeetCode] Flatten 2D Vector 压平二维向量
Implementaniteratortoflattena2dvector.Forexample,
Given
2dvector=[ [1,2], [3], [4,5,6] ] Bycalling
Grandyang
·
2016-02-23 13:00
LeetCode Max Points on a Line
Given
n pointsona2Dplane,findthemaximumnumberofpointsthatlieonthesamestraightline.题意:平面上给出n个点,求在同一条直线上的最多点
wuli2496
·
2016-02-23 11:00
Leetcode 131:Palindrome Partitioning
suchthateverysubstringofthepartitionisapalindrome.Returnallpossiblepalindromepartitioningof s.Forexample,
given
geekmanong
·
2016-02-23 00:00
Summary Ranges
Givenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Forexample,
given
[0,1,2,4,5,7],return
KickCode
·
2016-02-22 16:06
数组
LeetCode:Restore IP Address
RestoreIPAddressesGivenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:
Given
随你所愿
·
2016-02-21 13:00
上一页
47
48
49
50
51
52
53
54
下一页
按字母分类:
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
其他