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
126.Partition List
comebeforenodesgreaterthanorequalto x.Youshouldpreservetheoriginalrelativeorderofthenodesineachofthetwopartitions.Forexample,
Given
u010339647
·
2016-05-11 22:00
LeetCode:Move Zeroes
writeafunctiontomoveall 0'stotheendofitwhilemaintainingtherelativeorderofthenon-zeroelements.Forexample,
given
itismelzp
·
2016-05-11 20:00
LeetCode
move
zeroes
LeetCode:Missing Number
MediumGivenanarraycontaining n distinctnumberstakenfrom 0,1,2,...,n,findtheonethatismissingfromthearray.Forexample,
Given
itismelzp
·
2016-05-11 20:00
LeetCode
number
Missing
树——unique-binary-search-trees
题目:
Given
n,howmanystructurallyunique BST's (binarysearchtrees)thatstorevalues1...n?
jingsuwen1
·
2016-05-11 18:00
leetcode.143. Reorder List
Ln,reorderitto:L0→Ln→L1→Ln-1→L2→Ln-2→…Youmustdothisin-placewithoutalteringthenodes'values.Forexample,
Given
happyxuma1991
·
2016-05-11 16:00
Top K Frequent Elements
Givenanon-emptyarrayofintegers,returnthekmostfrequentelements.Forexample,
Given
[1,1,1,2,2,3]andk=2,return
CiaoLiang
·
2016-05-11 10:01
LeetCode
C++
Top K Frequent Elements
Givenanon-emptyarrayofintegers,returnthe k mostfrequentelements.Forexample,
Given
[1,1,1,2,2,3] andk=2
CiaoLiang
·
2016-05-11 10:00
114. Flatten Binary Tree to Linked List
Givenabinarytree,flattenittoalinkedlistin-place.Forexample,
Given
1 /\ 25 /\\ 346 Theflattenedtreeshouldlooklike
a342500329a
·
2016-05-10 23:00
leetcode.215. Kth Largest Element in an Array
Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Forexample,
Given
happyxuma1991
·
2016-05-10 23:00
LeetCode-11. Container With Most Water
Given
n non-negativeintegers a1, a2,..., an,whereeachrepresentsapointatcoordinate(i, ai). n verticallinesaredrawnsuchthatthetwoendpointsofline
u012848330
·
2016-05-10 19:00
error: Error retrieving parent for item: No resource found that matches the
given
name 'Theme.AppCom
错误显示如上图鼠标放在红叉的位置则会显示和标题一样的代码,即错误ERROR。大致的意思是找不到能和“Theme.AppCompat.Light”相匹配的资源。也就是说缺少Theme.AppCompat.Light这个主题,而这个主题在appcompat-v7里面。所以解决方法是:先下载一个appcompat-v7库,再import。导入方式和导入一个项目是一样的,把appcompat-v7当成项目
ni_lee_gg
·
2016-05-10 16:06
124.Perfect Squares
Givenapositiveinteger n,findtheleastnumberofperfectsquarenumbers(forexample, 1,4,9,16,...)whichsumto n.Forexample,
given
u010339647
·
2016-05-10 15:00
链表——成对的反转链表
题目:swap-nodes-in-pairs一对一对的反转链表内的结点Forexample,
Given
1->2->3->4, return2->1->4->3.思路:“按K个结点一组反转链表”当k为2时的特殊情况
jingsuwen1
·
2016-05-10 11:00
leetcode刷题,总结,记录,备忘 347
leetcode347TopKFrequentElementsGivenanon-emptyarrayofintegers,returnthe k mostfrequentelements.Forexample,
Given
guicaisa
·
2016-05-09 23:00
61. Rotate List
Givenalist,rotatethelisttotherightbykplaces,wherekisnon-negative.Forexample:
Given
1->2->3->4->5->NULLandk
zhangjian5021275
·
2016-05-09 22:00
LeetCode
leetcode.42. Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
happyxuma1991
·
2016-05-09 22:00
回溯法实现格雷码
Forexample,
given
n =2,return [0,1,3,2].Itsgraycodesequenceis:00-0 01-1 11-3 10-2回溯法可实现,但是不符合LeetCode的答案顺序
qq_27991659
·
2016-05-09 22:00
3. Longest Substring Without Repeating Characters
——这是leedcode的第三题:Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Examples:
Given
BuptZhengChaoJie
·
2016-05-09 21:00
leetcode-- Remove Duplicates from Sorted List II
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Forexample,
Given
1
a1b2c3d4123456
·
2016-05-09 20:00
leetcode--Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonlyonce.Forexample,
Given
1->1->2,return1
a1b2c3d4123456
·
2016-05-09 20:00
121.Integer Break(需要重新分析)
twopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Forexample,
given
u010339647
·
2016-05-09 19:00
链表——循环右移链表的后K个结点
Forexample:
Given
1->2->3->4->5->NULLand k =2,return4->5->1->2->3->NULL.思路:1.首先要找链表的倒数第K个结点;2.因循环右移的K个结点仍是按原来顺序排列
jingsuwen1
·
2016-05-09 18:00
链表
循环右移
倒数第K个结点
leetcode(4),Move Zeroes详解(python)
writeafunctiontomoveall 0'stotheendofitwhilemaintainingtherelativeorderofthenon-zeroelements.Forexample,
given
chinwuforwork
·
2016-05-09 17:00
LeetCode
python
LeetCode--Longest Substring Without Repeating Characters
Examples:
Given
"abcabcbb",theansweris"abc",whichthelengthis3.
Given
"bbbbb",theansweris"b",withthelengthof1
zlele0326
·
2016-05-09 17:00
LeetCode:Top K Frequent Elements
11511 Difficulty: MediumGivenanon-emptyarrayofintegers,returnthe k mostfrequentelements.Forexample,
Given
itismelzp
·
2016-05-09 16:00
LeetCode
top
Frequent
K
Eleme
链表——删除排序链表的重复结点(一个都不保留)
Forexample,
Given
1->2->3->3->4->4->5,return1->2->5.
Given
1->1->1->2->3,return2->3.思路:设置三个指针ppre,pcur,pnext
jingsuwen1
·
2016-05-09 15:00
链表——删除链表中的重复结点
Forexample,
Given
1->1->2,return1->2.
Given
1->1->2->3->3,return1->2->3.代码如下:/** *Definitionforsingly-linkedlist
jingsuwen1
·
2016-05-09 14:00
链表
重复结点
链表——将单链表从m到n的结点位置翻转
题目:反转链表从m-n位置的结点Forexample:
Given
1->2->3->4->5->NULL,m=2andn=4,return1->4->3->2->5->NULL.从第二到第四的结点被反转了
井底的笨鸟
·
2016-05-09 13:30
LeetCode
链表——将单链表从m到n的结点位置翻转
题目:反转链表从m-n位置的结点Forexample:
Given
1->2->3->4->5->NULL, m =2and n =4,return1->4->3->2->5->NULL.从第二到第四的结点被反转了
jingsuwen1
·
2016-05-09 13:00
链表——关于stack的一个操作
题目:原链表排列为: L: L0→L1→…→Ln-1→Ln,改变排列为: L0→Ln→L1→Ln-1→L2→Ln-2→…Forexample,
Given
{1,2,3,4},reorderitto{1,4,2,3
jingsuwen1
·
2016-05-09 13:00
Leetcode 19. Remove Nth Node From End of List
Note:
Given
n
a2415180498
·
2016-05-09 12:00
LeetCode
list
双指针
Leetcode 143. Reorder List
Ln,reorderitto:L0→Ln→L1→Ln-1→L2→Ln-2→…Youmustdothisin-placewithoutalteringthenodes’values.Forexample,
Given
xinyuehuixin
·
2016-05-09 09:00
LeetCode
链表
linklist
First Missing Positive
题目描述:Givenanunsortedintegerarray,findthefirstmissingpositiveinteger.Forexample,
Given
[1,2,0]return3,and
yeshiwu
·
2016-05-08 21:00
java
算法
Trapping Rain Water
Givennnon-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample,
Given
yeshiwu
·
2016-05-08 21:00
java
array
two-points
leetcode刷题,总结,记录,备忘 343
twopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Forexample,
given
guicaisa
·
2016-05-08 21:00
300. Longest Increasing Subsequence 最长子序列
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
u010005161
·
2016-05-08 16:00
C++
dynamic
programming
subsequence
3查找最长和的数字串
Givenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
(
mRango
·
2016-05-08 15:00
61. Binary Tree Inorder Traversal
123484TotalSubmissions:310732Difficulty:MediumGivenabinarytree,returntheinordertraversalofitsnodes’values.Forexample:
Given
justdoithai
·
2016-05-08 12:00
tree
traversal
Inorder
Leetcode 061 Rotate List
Givenalist,rotatethelisttotherightbykplaces,wherekisnon-negative.Forexample:
Given
1->2->3->4->5->NULLandk
xinyuehuixin
·
2016-05-08 11:00
LeetCode
链表
linklist
Leetcode 82. Remove Duplicates from Sorted List II
Givenasortedlinkedlist,deleteallnodesthathaveduplicatenumbers,leavingonlydistinctnumbersfromtheoriginallist.Forexample,
Given
1
xinyuehuixin
·
2016-05-08 11:00
LeetCode
链表
linklist
LeetCode 93. Restore IP Addresses
Givenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:
Given
github_34333284
·
2016-05-08 10:00
Trapping Rain Water
【题目】
Given
n non-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1,computehowmuchwateritisabletotrapafterraining.Forexample
haihaa
·
2016-05-08 09:00
LeetCode
指针
trap
water
Rain
[leetcode] 93. Restore IP Addresses 解题报告
Givenastringcontainingonlydigits,restoreitbyreturningallpossiblevalidIPaddresscombinations.Forexample:
Given
qq508618087
·
2016-05-07 23:00
LeetCode
String
DFS
1001 Problem A
1001ProblemA题意:Givenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
diyutianxie
·
2016-05-07 22:00
347. Top K Frequent Elements
TopKFrequentElements原题介绍Givenanon-emptyarrayofintegers,returnthekmostfrequentelements.Forexample,
Given
lilingyu520
·
2016-05-07 20:00
LeetCode------Remove Duplicates from Sorted List
题目简介Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonlyonce.Forexample,
Given
1->1-
Iron_Tie
·
2016-05-07 20:48
LeetCode
[LeetCode]049-Group Anagrams
题目:Givenanarrayofstrings,groupanagramstogether.Forexample,
given
:[“eat”,“tea”,“tan”,“ate”,“nat”,“bat”]
htx931005
·
2016-05-07 16:00
LeetCode
011 Container With Most Water
Given
n non-negativeintegers a1, a2,..., an,whereeachrepresentsapointatcoordinate(i, ai). n verticallinesaredrawnsuchthatthetwoendpointsofline
molu_chase
·
2016-05-06 23:00
动态规划1001
ProblemDescriptionGivenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
wangran1111
·
2016-05-06 21:00
HDU 1003 Max Sum(经典DP,)
DescriptionGivenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
xia842655187
·
2016-05-06 19:00
dp
C语言
ACM
g++
HDU
上一页
40
41
42
43
44
45
46
47
下一页
按字母分类:
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
其他