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
Leetcode题解
leetcode资料整理
https://github.com/soulmachine/leetcode https://github.com/soulmachine/leetcode/tree/master (
LeetCode
·
2015-06-03 20:00
LeetCode
LeetCode 汇总
LeetCode汇总
LeetCode题解
https://github.com/soulmachine/leetcode
LeetCode题解
(C++版).pdfhttps://github.com/soulmachine
JUST DO IT ~
·
2015-04-20 14:00
leetcode题解
|| Roman to Integer问题
problem:Givenaromannumeral,convertittoaninteger. Inputisguaranteedtobewithintherangefrom1to3999.将罗马数字转为整数thinking:(1)罗马数字规则:罗马数字共有7个,即I(1)、V(5)、X(10)、L(50)、C(100)、D(500)和M(1000)。按照下述的规则可以表示任意正整数。需要注意
hustyangju
·
2015-03-18 16:00
LeetCode
map
罗马数字
leetcode题解
||Integer to Roman问题
problem:Givenaninteger,convertittoaromannumeral. Inputisguaranteedtobewithintherangefrom1to3999.将1-3999的整数转换为罗马数字thinking:(1)对照举例个位数举例Ⅰ,1】Ⅱ,2】Ⅲ,3】Ⅳ,4】Ⅴ,5】Ⅵ,6】Ⅶ,7】Ⅷ,8】Ⅸ,9】十位数举例Ⅹ,10】Ⅺ,11】Ⅻ,12】XIII,13】X
hustyangju
·
2015-03-18 16:00
LeetCode
罗马数字
leetcode题解
||Container With Most Water问题
problem:Givennnon-negativeintegersa1,a2,...,an,whereeachrepresentsapointatcoordinate(i,ai). nverticallinesaredrawnsuchthatthetwoendpointsoflineiisat(i,ai)and(i,0). Findtwolines,whichtogetherwithx-axis
hustyangju
·
2015-03-18 15:00
遍历
双指针
leetcode题解
||Regular Expression Matching 问题
problem:Implementregularexpressionmatchingwithsupportfor'.'and'*'. '.'Matchesanysinglecharacter. '*'Matcheszeroormoreoftheprecedingelement. Thematchingshouldcovertheentireinputstring(notpartial). T
hustyangju
·
2015-03-18 11:00
dp
模式识别
leetcode题解
||Palindrome Number问题
problem:Determinewhetheranintegerisapalindrome.Dothiswithoutextraspace. clicktoshowspoilers. Somehints: Couldnegativeintegersbepalindromes?(ie,-1) Ifyouarethinkingofconvertingtheintegertostring,not
hustyangju
·
2015-03-17 20:00
回文数
int反转
leetcode题解
||Reverse Integer 问题
problem:Reversedigitsofaninteger. Example1:x=123,return321 Example2:x=-123,return-321thinking:(1)整型反转直观很容易理解。如正负,尾数为0等问题还好处理。(2)反转溢出问题要仔细处理。code:classSolution{ public: intreverse(intx){ longlonginty=
hustyangju
·
2015-03-17 16:00
LeetCode
溢出
int反转
leetcode题解
||ZigZag Conversion问题
problem:Thestring"PAYPALISHIRING"iswritteninazigzagpatternonagivennumber ofrowslikethis: (youmaywanttodisplaythispatterninafixedfontforbetterlegibility) PAHN APLSIIG YIR Andthenreadlinebyline:"PAHNAP
hustyangju
·
2015-03-17 14:00
LeetCode
字符串
String
leetcode题解
||Median of Two Sorted Arrays问题
problem:TherearetwosortedarraysAandBofsizemandnrespectively. Findthemedianofthetwosortedarrays. TheoverallruntimecomplexityshouldbeO(log(m+n)).thinking:(1)求中位数,就是求已序数列的中间位置对应的数字,分奇偶。两个已序数组求中位数,就是求合并后的
hustyangju
·
2015-03-16 19:00
分治
合并排序
递归算法
第K大数字
LeetCode题解
|| Longest Substring Without Repeating Characters (O(n)算法)问题
problem:Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters. Forexample,thelongestsubstringwithoutrepeatinglettersfor"abcabcbb"is"abc", whichthelengthis3.For"bbbbb"thelongestsubs
hustyangju
·
2015-03-16 15:00
算法
table
hash
substring
[LeetCode] 037. Sudoku Solver (Hard) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode037.SudokuSolver
hcbbt
·
2015-03-13 19:00
LeetCode
C++
算法
[LeetCode] 036. Valid Sudoku (Easy) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode036.ValidSudoku
hcbbt
·
2015-03-13 19:00
LeetCode
C++
算法
[LeetCode] 035. Search Insert Position (Medium) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode035.SearchInsertPosition
hcbbt
·
2015-03-13 18:00
LeetCode
C++
算法
[LeetCode] 034. Search for a Range (Medium) (C++/Java)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode035.SearchforaRange
hcbbt
·
2015-03-13 18:00
java
LeetCode
C++
算法
[LeetCode] 033. Search in Rotated Sorted Array (Hard) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode033.SearchinRotatedSortedArray
hcbbt
·
2015-03-13 16:00
LeetCode
C++
算法
[LeetCode] 032. Longest Valid Parentheses (Hard) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode032.LongestValidParentheses
hcbbt
·
2015-03-13 15:00
LeetCode
C++
算法
[LeetCode] 031. Next Permutation (Medium) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode031.NextPermutation
hcbbt
·
2015-03-07 16:00
LeetCode
C++
算法
python
[LeetCode] 030. Substring with Concatenation of All Words (Hard) (C++/Java)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode030.SubstringwithConcatenationofAllWords
hcbbt
·
2015-03-06 22:00
java
LeetCode
C++
算法
[LeetCode] 029. Divide Two Integers (Medium) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode029.DivideTwoIntegers
hcbbt
·
2015-03-06 15:00
LeetCode
C++
算法
python
[LeetCode] 028. Implement strStr() (Easy) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode028.ImplementstrStr
hcbbt
·
2015-03-06 15:00
LeetCode
C++
算法
python
[LeetCode] 027. Remove Element (Easy) (C++)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode027.RemoveElement
hcbbt
·
2015-03-06 11:00
LeetCode
C++
算法
[LeetCode] 026. Remove Duplicates from Sorted Array (Easy) (C++/Java)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode026.RemoveDuplicatesfromSortedArray
hcbbt
·
2015-03-05 15:00
LeetCode
C++
算法
[LeetCode] 025. Reverse Nodes in k-Group (Hard) (C++/Java)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode025.ReverseNodesink-Group
hcbbt
·
2015-03-05 15:00
java
LeetCode
C++
算法
[LeetCode] 024. Swap Nodes in Pairs (Medium) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode024.SwapNodesinPairs
hcbbt
·
2015-03-05 14:00
LeetCode
C++
算法
python
[LeetCode] 023. Merge k Sorted Lists (Hard) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode023.MergekSortedLists
hcbbt
·
2015-03-05 11:00
java
LeetCode
C++
算法
python
[LeetCode] 022. Generate Parentheses (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode022.Generate_Parentheses
hcbbt
·
2015-03-05 10:00
java
LeetCode
C++
算法
python
[LeetCode] 021. Merge Two Sorted Lists (Easy) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode021.Merge_Two_Sorted_Lists
hcbbt
·
2015-03-04 20:00
java
LeetCode
C++
算法
python
[LeetCode] 020. Valid Parentheses (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode020.Valid_Parentheses
hcbbt
·
2015-03-04 19:00
java
LeetCode
C++
算法
python
[LeetCode] 019. Remove Nth Node From End of List (Easy) (C++/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode019.Remove_Nth_Node_From_End_of_List
hcbbt
·
2015-03-04 19:00
LeetCode
C++
算法
python
[LeetCode] 016. 3Sum Closest (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode016.3Sum_Closest
hcbbt
·
2015-03-03 19:00
java
LeetCode
C++
算法
python
[LeetCode] 015. 3Sum (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode015.3Sum(Medium
hcbbt
·
2015-03-03 18:00
java
LeetCode
C++
算法
python
[LeetCode] 013. Roman to Integer (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode013.Roman_to_Integer
hcbbt
·
2015-03-02 23:00
java
LeetCode
C++
算法
python
[LeetCode] 012. Integer to Roman (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode012.Integer_to_Roman
hcbbt
·
2015-03-02 23:00
java
LeetCode
C++
算法
python
[LeetCode] 011. Container With Most Water (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode011.Container_With_Most_Water
hcbbt
·
2015-03-02 22:00
java
LeetCode
C++
算法
python
[LeetCode] 010. Regular Expression Matching (Hard) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode010.Regular_Expression_Matching
hcbbt
·
2015-03-02 11:00
java
LeetCode
C++
算法
python
[LeetCode] 009. Palindrome Number (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode009.Palindrome_Number
hcbbt
·
2015-03-01 10:00
java
LeetCode
C++
算法
python
[LeetCode] 007. Reverse Integer (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode007.Reverse_Integer
hcbbt
·
2015-02-28 00:09
=====算法相关=====
+基础算法
+Leetcode
Leetcode
题解
[LeetCode] 007. Reverse Integer (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode007.Reverse_Integer
hcbbt
·
2015-02-28 00:00
java
LeetCode
C++
算法
python
[LeetCode] 006. ZigZag Conversion (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode006.ZigZag_Conversion
hcbbt
·
2015-02-28 00:00
java
LeetCode
C++
算法
python
[LeetCode] 005. Longest Palindromic Substring (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode005.Longest_Palindromic_Substring
hcbbt
·
2015-02-28 00:00
java
LeetCode
C++
算法
python
[LeetCode] 004. Median of Two Sorted Arrays (Hard) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode004.Median_of_Two_Sorted_Arrays
hcbbt
·
2015-02-28 00:00
java
LeetCode
C++
python
[LeetCode] 003. Longest Substring Without Repeating Characters (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode003.Longest_Substring_Without_Repeating_Characters
hcbbt
·
2015-02-27 12:00
java
LeetCode
C++
python
[LeetCode] 002. Add Two Numbers (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode002.Add_Two_Numbers
hcbbt
·
2015-02-27 12:00
java
LeetCode
C++
python
[LeetCode] 001. Two Sum (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题解
索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode001.Two_Sum(Medium
hcbbt
·
2015-02-27 12:00
LeetCode
C++
python
LeetCode题解
|| Two Sum问题
question:Givenanarrayofintegers,findtwonumberssuchthattheyadduptoaspecifictargetnumber.ThefunctiontwoSumshouldreturnindicesofthetwonumberssuchthattheyadduptothetarget,whereindex1mustbelessthanindex2.P
hustyangju
·
2015-01-13 10:19
LeetCode
two
sum
vector
hashtable
算法
[LeetCode]Interleaving String
= "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac",returntrue.When s3 = "aadbbbaccc",returnfalse.二维动态规划参考
LeetCode
u014691362
·
2014-11-23 19:00
java
LeetCode
[LeetCode] Unique Binary Search Trees
Forexample,Given n =3,thereareatotalof5uniqueBST's.13321 \///\\ 321132 //\\ 2123dynamicprogramming参照
LeetCode
u014691362
·
2014-11-23 16:00
LeetCode题解
:Binary Tree Level Order Traversal
有点胃痛,这篇仓促写完……见谅Givenabinarytree,returnthe levelorder traversalofitsnodes'values.(ie,fromlefttoright,levelbylevel).Forexample:Givenbinarytree {3,9,20,#,#,15,7},3 /\ 920 /\ 157 returnitslevelordertraver
u012403246
·
2014-11-20 23:00
LeetCode题解
:Reverse Integer (3种解法)
Reversedigitsofaninteger.Example1: x=123,return321Example2: x=-123,return-321题解:输入一个整数,然后倒过来输出它。解决思路:其实这道题看起来非常简单,要实现也是几行代码的事。但是有个小问题容易被忽略(刷过一些找工作神书的话估计都能考虑到),就是边界问题。什么意思呢?如果我们输入的整数超出了int的表达范围,这个问题要怎么
u012403246
·
2014-11-19 20:00
上一页
25
26
27
28
29
30
31
32
下一页
按字母分类:
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
其他