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——114—— Flatten Binary Tree to Linked List
Givenabinarytree,flattenittoalinkedlistin-place.Forexample,
Given
1 /\ 25 /\\ 346 Theflattenedtreeshouldlooklike
happyxuma1991
·
2016-05-01 11:00
LeetCode 179. Largest Number
Givenalistofnonnegativeintegers,arrangethemsuchthattheyformthelargestnumber.Forexample,
given
[3,30,34,5,9
github_34333284
·
2016-05-01 07:00
34. Swap Nodes in Pairs
95230TotalSubmissions:270562Difficulty:EasyGivenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1
justdoithai
·
2016-04-30 23:00
swap
nodes
pairs
leetcode——92——Reverse Linked List II
Reversealinkedlistfrompositionmton.Doitin-placeandinone-pass.Forexample:
Given
1->2->3->4->5->NULL,m=2andn
happyxuma1991
·
2016-04-30 17:00
[CodeForces 27E] Number With The
Given
Amount Of Divisors (数论 + 反素数)
CodeForces-27E求约数个数为N的最小的数这样的数一定是反素数,但不知道反素数也不要紧用DFS从小到大枚举质数表中的每一个质数然后乘起来,计算能组成的约数的个数加两个剪枝,一是约数个数大于N的二是继续增加这个质数的个数,但无法更新答案的#include #include #include #include #include #include #include #include #incl
u012015746
·
2016-04-30 16:00
codeforces
leetcode——300—— Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
happyxuma1991
·
2016-04-29 17:00
每天laravel-20160728| Genaerator command-6
/** * Replace the class name for the
given
stub.
lijingsan1
·
2016-04-29 14:20
laravel
Permutation Sequence
uniquepermutations.Bylistingandlabelingallofthepermutationsinorder,Wegetthefollowingsequence(ie,for n =3):"123""132""213""231""312""321"
Given
u010005161
·
2016-04-29 11:00
LeetCode
C++
backtracking
24. Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
a342500329a
·
2016-04-29 01:00
[LeetCode]Unique Binary Search Trees II生成所有二叉搜索树
一、问题描述:
Given
n,generateallstructurallyunique BST's (binarysearchtrees)thatstorevalues1...n.Forexample
CristianoJason
·
2016-04-28 22:00
动态规划
二叉搜索树的生成
61. Rotate List
Givenalist,rotatethelisttotherightby k places,where k isnon-negative.Forexample:
Given
1->2->3->4->5->
qq_27991659
·
2016-04-28 21:00
leetcode--Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas2
a1b2c3d4123456
·
2016-04-28 20:00
算法
Leetcode 238 Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
xinyuehuixin
·
2016-04-28 10:00
LeetCode
3. Longest Substring Without Repeating Characters
Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Examples:
Given
“abcabcbb”,theansweris
cug_heshun
·
2016-04-28 09:00
LeetCode
算法
最长不重复子串
Problem A
ProblemDescriptionGivenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
tansanity
·
2016-04-27 19:00
ACM
链表插入排序
题目描述:用插入排序对链表排序样例:
Given
1->3->2->0->null,return0->1->2->3->null之前,在我的博文“将排序链表转换为二分查找树”(详见:点击打开链接)中已经介绍了链表的快慢指针法
guoziqing506
·
2016-04-26 22:00
链表
插入排序
Generate Parentheses
Given
n pairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample
u010005161
·
2016-04-26 21:00
LeetCode
C++
backtracking
LeetCode 3, Longest Substring Without Repeating Characters
(给定一个字符串,找到最长无重复字符的子串长度)Examples:
Given
"abcabcbb",theansweris "abc",whichthelengthis3.
Given
"bbbbb",theansweris
u014594922
·
2016-04-26 21:00
String
substring
最长字串
LeetCode 61. Rotate List
1.题目要求Givenalist,rotatethelisttotherightbykplaces,wherekisnon-negative.Forexample:
Given
1->2->3->4->5-
zhyh1435589631
·
2016-04-26 21:00
LeetCode
343. Integer Break
twopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Forexample,
given
qq_27991659
·
2016-04-26 10:00
1040. Longest Symmetric String (25)
Givenastring,youaresupposedtooutputthelengthofthelongestsymmetricsub-string.Forexample,
given
"IsPAT&TAPsymmetric
baidu_32157201
·
2016-04-26 09:00
pat
字符串中的回文
leetcode: Spiral Matrix II
问题描述:Givenaninteger n,generateasquarematrixfilledwithelementsfrom1to n2 inspiralorder.Forexample,
Given
frank-liu
·
2016-04-25 23:00
1038. Recover the Smallest Number (30)
Givenacollectionofnumbersegments,youaresupposedtorecoverthesmallestnumberfromthem.Forexample,
given
{32,321,3214,0229,87
baidu_32157201
·
2016-04-25 22:00
pat
字符串前缀
leetcode: Merge Intervals
问题描述:Givenacollectionofintervals,mergealloverlappingintervals.Forexample,
Given
[1,3],[2,6],[8,10],[15,18
frank-liu
·
2016-04-25 21:00
LeeCode-Spiral Matrix II
Givenaninteger n,generateasquarematrixfilledwithelementsfrom1to n2 inspiralorder.Forexample,
Given
n =
u013018721
·
2016-04-25 19:00
LeeCode
LeeCode-Swap Nodes in Pairs
Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas
u013018721
·
2016-04-25 18:00
LeeCode
LeeCode-Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonly once.Forexample,
Given
1->1->2
u013018721
·
2016-04-25 18:00
LeeCode
LeetCode 215. Kth Largest Element in an Array
Findthekthlargestelementinanunsortedarray.Notethatitisthekthlargestelementinthesortedorder,notthekthdistinctelement.Forexample,
Given
github_34333284
·
2016-04-25 11:00
LeetCode 251. Flatten 2D Vector
Ididn'tbuythelockedquestions(Thisquestioniscopiedfromotherblog.)Implementaniteratortoflattena2dvector.Forexample,
Given
2dvector
github_34333284
·
2016-04-25 01:00
Longest Substring Without Repeating Characters
Examples:
Given
"abcabcbb",theansweris"abc",whichthelengthis3.
yang20141109
·
2016-04-23 22:00
345 / 344 Reverse Vowels of a String / Reverse String
EasyWriteafunctionthattakesastringasinputandreverseonlythevowelsofastring.Example1:Givens="hello",return"holle".Example2:
Given
EbowTang
·
2016-04-23 20:46
string
c语言
回溯法
leetcode
面试
LeetCode
OJ
LeetCode解题报告
345 / 344 Reverse Vowels of a String / Reverse String
EasyWriteafunctionthattakesastringasinputandreverseonlythevowelsofastring.Example1:Givens="hello",return"holle".Example2:
Given
EbowTang
·
2016-04-23 20:46
LeetCode
OJ
LeetCode解题报告
string
c语言
回溯法
leetcode
面试
ReOrder List
Forexample,
Given
{1,2,3,4},reorderitto{1,4,2,3}. 解析:(1)把链表分割成A,B两部分。 (
yang20141109
·
2016-04-23 12:00
【一天一道LeetCode】#24. Swap Nodes in Pairs
一天一道LeetCode系列(一)题目Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3
terence1212
·
2016-04-22 21:00
LeetCode
算法
leetcode——238——Product of Array Except Self
i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,
given
happyxuma1991
·
2016-04-22 10:00
LeetCode
300. Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Forexample,
Given
[10,9,2,5,3,7,101,18
a342500329a
·
2016-04-22 00:00
LeetCode之24----Swap Nodes in Pairs
题目:Givenalinkedlist,swapeverytwoadjacentnodesandreturnitshead.Forexample,
Given
1->2->3->4,youshouldreturnthelistas
Jung_zhang
·
2016-04-21 19:00
LeetCode
算法
You\'re
Given
a String...
A.You'reGivenaString...timelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYou'regivenastringoflower-caseLatinletters.Yourtaskistofindthelengthofitslongestsubst
u013077144
·
2016-04-21 19:00
Trapping Rain Water
https://leetcode.com/problems/trapping-rain-water/
Given
n non-negativeintegersrepresentinganelevationmapwherethewidthofeachbaris1
u013077144
·
2016-04-21 19:00
HD 1003 Max Sum(贪心)
1003ProblemDescriptionGivenasequencea[1],a[2],a[3]......a[n],yourjobistocalculatethemaxsumofasub-sequence.Forexample,
given
eagle_or_snail
·
2016-04-21 17:00
Leetcode 11. Container With Most Water
Given
n non-negativeintegers a1, a2,..., an,whereeachrepresentsapointatcoordinate(i, ai). n verticallinesaredrawnsuchthatthetwoendpointsofline
a2415180498
·
2016-04-21 15:00
LeetCode
C++
贪心
双指针
Leetcode 3. Longest Substring Without Repeating Characters
Givenastring,findthelengthofthe longestsubstring withoutrepeatingcharacters.Examples:
Given
"abcabcbb"
a2415180498
·
2016-04-21 14:00
LeetCode
C++
substring
longest
wi
使用原生的Base64
NSData方法来操作Base64编码的数据:// From NSData.h /* Create an NSData from a Base-64 encoded NSString using the
given
北方人在上海
·
2016-04-21 14:00
使用原生的Base64
22. Generate Parentheses
Given
n pairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample
qq_27991659
·
2016-04-21 10:00
leetcode 3. Longest Substring Without Repeating Characters
//Examples: //
Given
"abcabcbb",theansweris"abc",whichthelengthis3.
u011438605
·
2016-04-21 09:00
LeetCode
LeetCode之22----Generate Parentheses
题目:
Given
n pairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample
Jung_zhang
·
2016-04-20 19:00
LeetCode
算法
LeetCode-83.Remove Duplicates from Sorted List
Givenasortedlinkedlist,deleteallduplicatessuchthateachelementappearonly once.Forexample,
Given
1->1->2
zmq570235977
·
2016-04-20 18:00
LeetCode
leetcode 343. Integer Break
twopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Forexample,
given
u014568921
·
2016-04-20 11:00
LeetCode
leetcode 336. Palindrome Pairs
j) inthegivenlist,sothattheconcatenationofthetwowords,i.e. words[i]+words[j] isapalindrome.Example1:
Given
u014568921
·
2016-04-20 10:00
LeetCode
LeetCode 114. Flatten Binary Tree to Linked List
Givenabinarytree,flattenittoalinkedlistin-place.Forexample,
Given
1 /\ 25 /\\ 346 Theflattenedtreeshouldlooklike
github_34333284
·
2016-04-20 03:00
上一页
42
43
44
45
46
47
48
49
下一页
按字母分类:
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
其他