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
Explanation
Leetcode算法——32、最长有效括号字符串
Example1:Input:“(()”Output:2
Explanation
:Thelongestvalidparenthesessubstringis“()”Example2:Input:“)()(
HappyRocking
·
2020-08-19 07:37
python
算法
Leetcode算法——53、子数组的最大和
示例:Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
:[4,-1,2,1]hasthelargestsum=6.思路1、分治法nums的连续子数组的最大和
HappyRocking
·
2020-08-19 07:37
python
算法
Merge Intervals
mergealloverlappingintervals.Example1:Input:[[1,3],[2,6],[8,10],[15,18]]Output:[[1,6],[8,10],[15,18]]
Explanation
WhiteJunior
·
2020-08-18 21:54
LeetCode
Top100
Liked
Question
C++OJ
LeetCode
Self-Culture
LeetCode
TopInterview
Question
Top
100
Liked
Questions
Top
Interview
Questions
[LeetCode] 56. Merge Interval
mergealloverlappingintervals.Example1:Input:[[1,3],[2,6],[8,10],[15,18]]Output:[[1,6],[8,10],[15,18]]
Explanation
蘑菇君520
·
2020-08-18 19:04
我就会这点算法
“采购-生产”模式-CMT,FOB,IFOB,CFOB
装运港船上交货(freeonboard)
Explanation
:国际贸易常用术语之一全写为freeonboard,指装运港船上交货,又称离岸价。
sinry234
·
2020-08-18 16:10
LeetCode-279. Perfect Squares
findtheleastnumberofperfectsquarenumbers(forexample,1,4,9,16,...)whichsumton.Example1Input:n=12Output:3
Explanation
复习复习复习!
·
2020-08-18 07:04
LeetCode
Maximum Subarray
containingatleastonenumber)whichhasthelargestsumandreturnitssum.Example:Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
张荣华_csdn
·
2020-08-18 07:54
leetcode
defered,promise回顾
defered,promise回顾http://www.ruanyifeng.com/blog/2011/08/a_detailed_
explanation
_of_jquery_deferred_object.htmlhttp
weixin_34088838
·
2020-08-18 04:45
Leetcode 279 完美平方数
findtheleastnumberofperfectsquarenumbers(forexample,1,4,9,16,...)whichsumton.Example1:Input:n=12Output:3
Explanation
DrCrypto
·
2020-08-18 03:25
算法学习
LeetCode
Leetcode刷题小记(3)--T3
LongestSubstringWithoutRepeatingCharactersGivenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Example1:Input:"abcabcbb"Output:3
Explanation
小牛呼噜噜
·
2020-08-18 01:09
算法
PTA 1007 素数对猜想 (C语言描述)
explanation
理解题意判断素数:判断n是否能被2~n\sqrtnn之间的整数除(空间复杂度较低)code#include#include#includeintisPrime(intn){intj
JackyFuu
·
2020-08-18 01:03
PTA
jquery 实现原理四:deferred对象
一,deferred的使用和基本原理具体的用法可以参见阮一峰的一篇日志:http://www.ruanyifeng.com/blog/2011/08/a_detailed_
explanation
_of_jquery_deferred_object.html
lihongxun945
·
2020-08-17 23:48
jquery
实现原理
leetcode 279 完全平方数(Perfect Squares) python BFS,四平方定理
findtheleastnumberofperfectsquarenumbers(forexample,1,4,9,16,...)whichsumton.Example1:Input:n=12Output:3
Explanation
每一个有风的日子
·
2020-08-17 22:28
【leetcode】
刷题总结
&
编程心得
悲观 乐观 并发 事务的区别 Optimistic and Pessimistic Concurrency/Locking
fromhttp://blogs.msdn.com/b/marcelolr/archive/2010/07/16/optimistic-and-pessimistic-concurrency-a-simple-
explanation
.aspxIreme
diguo9349
·
2020-08-17 22:37
数据库
LeetCode 279 Perfect Squares (BFS 优化 or 数学)
findtheleastnumberofperfectsquarenumbers(forexample,1,4,9,16,...)whichsumton.Example1:Input:n=12Output:3
Explanation
_TCgogogo_
·
2020-08-17 20:24
Leetcode
Medium
模拟
LeetCode
MIT18.06学习笔记 - Lecture 4: Factorization into A = LU
CourseName:MIT18.06LinearAlgebraTextBook:IntroductiontoLinearAlgebra章节内容:2.6课程提纲1.FactorizationA=LUA=LU2.
Explanation
CrazyTensor
·
2020-08-17 11:04
math
leetCode第二题答案,两个链表存储形式的数据加和,最终返回一个链表(java版分析)
classListNode{intval;ListNodenext;ListNode(intx){val=x;}}//Input:(2->4->3)+(5->6->4)//Output:7->0->8//
Explanation
Jeremy__Zhu
·
2020-08-17 09:59
LeetCode
Datastruct
面试
【Leetcode】712. Minimum ASCII Delete Sum for Two Strings
findthelowestASCIIsumofdeletedcharacterstomaketwostringsequal.Example1:Input:s1="sea",s2="eat"Output:231
Explanation
XiaoM将故事
·
2020-08-16 23:53
数据结构
LeetCode
java
数据结构
leetcode
数据结构及算法: union find学习
在网上查了一下,发现最容易理解的是quosa上的一个讲解,链接:https://www.quora.com/What-is-an-intuitive-
explanation
-of-union-find以及自己模仿的做法
xinqrs01
·
2020-08-16 22:34
leetcode 53 Maximum Subarray (求最大子数组的和)
示例Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
:[4,-1,2,1]hasthelargestsum=6.思路方法暴力遍历法是最容易想到的,但是由于时间消耗太高
小白的进阶之路
·
2020-08-16 20:36
leetcode题解
House Robber(打家劫舍问题)
一、LeetCode198.HouseRobberInput:[1,2,3,1]Output:4
Explanation
:Robhouse1(money=1)andthenrobhouse3(money=
鱼米粒
·
2020-08-16 19:07
LeetCode分类刷题
#
LeetCode树
[leetcode] 451. Sort Characters By Frequency @ python
Givenastring,sortitindecreasingorderbasedonthefrequencyofcharacters.Example1:Input:“tree”Output:“eert”
Explanation
闲庭信步的空间
·
2020-08-16 19:32
Leetcode
LeetCode-Count Numbers with Unique Digits
Givenanon-negativeintegern,countallnumberswithuniquedigits,x,where0≤x<10n.Example:Input:2Output:91
Explanation
Sunny_Ran
·
2020-08-16 11:19
数据结构&算法
【LeetCode】32. Longest Valid Parentheses - Java实现
’and‘)’,findthelengthofthelongestvalid(well-formed)parenthesessubstring.Example1:Input:“(()”Output:2
Explanation
xiaoguaihai
·
2020-08-16 10:33
【LeetCode】
【Java】
LeetCode题解
-
Java实现
53. Maximum Subarray(DP)
containingatleastonenumber)whichhasthelargestsumandreturnitssum.Example:Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
muqingwind
·
2020-08-16 08:36
LeetCode
LeetCode:Reverse Bits(颠倒二进制位)
题目Reversebitsofagiven32bitsunsignedinteger.Example:Input:43261596Output:964176192
Explanation
:43261596representedinbinaryas00000010100101000001111010011100
岳麓吹雪
·
2020-08-16 06:50
刷题
刷题笔记
2020 年 4月 7 日「LeetCode」打卡题目:Counting Elements
countelementxsuchthatx+1isalsoinarr.Ifthere’reduplicatesinarr,countthemseperately.Example1:Input:arr=[1,2,3]Output:2
Explanation
liweiwei1419
·
2020-08-15 23:14
力扣
LintCode 114,115. 不同的路径
样例Example1:Input:n=1,m=3Output:1
Explanation
:Onlyonepathtotargetposition.Example2:Input:n=3,m=3Output:
林间松韵
·
2020-08-15 18:30
数据结构与算法
ORA-01555 "Snapshot too old" - Detailed
Explanation
ORA-01555"Snapshottooold"-DetailedExplanation===================================================Overview~~~~~~~~ThisarticlewilldiscussthecircumstancesunderwhichaquerycanreturntheOracleerrorORA-01555"s
leishifei
·
2020-08-15 14:11
Oracle
故障解决案例
537. Complex Number Multiplication
Giventwostringsrepresentingtwocomplexnumbers.Youneedtoreturnastringrepresentingtheirmultiplication.Notei2=-1accordingtothedefinition.Example1:Input:"1+1i","1+1i"Output:"0+2i"
Explanation
zshouyi
·
2020-08-15 09:08
LeetCode
Math
String
537. Complex Number Multiplication(python+cpp)
Giventwostringsrepresentingtwocomplexnumbers.Youneedtoreturnastringrepresentingtheirmultiplication.Notei2=-1accordingtothedefinition.Example1:Input:"1+1i","1+1i"Output:"0+2i"
Explanation
小湉湉
·
2020-08-15 07:19
LeetCode
leetcode 537. Complex Number Multiplication
Giventwostringsrepresentingtwocomplexnumbers.Youneedtoreturnastringrepresentingtheirmultiplication.Notei2=-1accordingtothedefinition.Example1:Input:"1+1i","1+1i"Output:"0+2i"
Explanation
huanghanqian
·
2020-08-15 06:27
leetcode
leetcode
[leetcode] 537. Complex Number Multiplication
Giventwostringsrepresentingtwocomplexnumbers.Youneedtoreturnastringrepresentingtheirmultiplication.Notei2=-1accordingtothedefinition.Example1:Input:"1+1i","1+1i"Output:"0+2i"
Explanation
TstsUgeg
·
2020-08-15 05:21
leetcode
[LeetCode]537. Complex Number Multiplication
Giventwostringsrepresentingtwocomplexnumbers.Youneedtoreturnastringrepresentingtheirmultiplication.Notei2=-1accordingtothedefinition.Example1:Input:"1+1i","1+1i"Output:"0+2i"
Explanation
Ellie_
·
2020-08-15 05:43
LeetCode
leetcode647 回文子串的数量
Example1:Input:"abc"Output:3
Explanation
:Threepalindromicstrings:"a","b","c".Example2:Input:"aaa"Output
慵懒的猫
·
2020-08-15 03:48
算法
leetcode 237. Delete Node in a Linked List(删除链表中的特定节点)
实例//Example1:Input:head=[4,5,1,9],node=5Output:[4,1,9]
Explanation
:Youaregiventhesecondnodewithvalue5,
小白的进阶之路
·
2020-08-14 18:21
leetcode题解
Leetcode237.删除链接列表中的节点
Example1:Input:head=[4,5,1,9],node=5Output:[4,1,9]
Explanation
:Youaregiventhesecondnodewithvalue5,thelinkedlistshouldbecome4
Cenergy
·
2020-08-14 18:28
算法
Python实现"删除链表中的节点(Delete Node in a Linked List)"的一种方法
,给定的输入数据只有待删除的节点给定链表--head=[4,5,1,9],形式为4->5->1->9Example1:Input:head=[4,5,1,9],node=5Output:[4,1,9]
Explanation
求兵
·
2020-08-14 18:07
Algorithms
Leetcode279
findtheleastnumberofperfectsquarenumbers(forexample,1,4,9,16,…)whichsumton.Example1:Input:n=12Output:3
Explanation
bupt906
·
2020-08-14 17:58
Leetcode300
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Example:Input:[10,9,2,5,3,7,101,18]Output:4
Explanation
bupt906
·
2020-08-14 17:58
Leetcode237
exceptthetail)inasinglylinkedlist,givenonlyaccesstothatnode.Example1:Input:head=[4,5,1,9],node=5Output:[4,1,9]
Explanation
bupt906
·
2020-08-14 15:04
LeetCode718
returnthemaximumlengthofansubarraythatappearsinbotharrays.Example1:Input:A:[1,2,3,2,1]B:[3,2,1,4,7]Output:3
Explanation
那些小花
·
2020-08-14 07:55
LeetCode
小练习:补数 (Number Complement)
1.eamplesInput:5Output:2
Explanation
:Thebinaryrepresentationof5is101(noleadingzerobits),anditscomplementis010
whlook
·
2020-08-13 23:08
leetcode53题(最大子序和)
题目:寻找最大子序列和(需要改进)eg.Input:[-2,1,-3,4,-1,2,1,-5,4],Output:6
Explanation
:[4,-1,2,1]hasthelargestsum=6.自己的解法
X_Strickland
·
2020-08-13 22:49
leetcode学习笔记58
LongestIncreasingSubsequenceGivenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Example:Input:[10,9,2,5,3,7,101,18]Output:4
Explanation
旖旎_Sarah
·
2020-08-13 21:54
leetcode
C#版 - Leetcode204. Count Primes - 题解
https://www.gaimor.cnCountthenumberofprimenumberslessthananon-negativenumber,n.Example:Input:10Output:4
Explanation
我高兴就好
·
2020-08-13 18:36
leetcode题解(257) Binary Tree Paths(打印所有二叉树根节点到叶节点的路径)
returnallroot-to-leafpaths.Note:Aleafisanodewithnochildren.Example:Input:1/\23\5Output:["1->2->5","1->3"]
Explanation
追随者永远是胜利者
·
2020-08-13 17:33
java
数据结构与算法
刷题
674. Longest Continuous Increasing Subsequence(python+cpp)
Givenanunsortedarrayofintegers,findthelengthoflongestcontinuousincreasingsubsequence(subarray).Example1:Input:[1,3,5,4,7]Output:3
Explanation
小湉湉
·
2020-08-13 16:56
LeetCode
Python实现"数字的补数"的两种方法
给定一个整数,返回它的补数.补数策略针对整数的二进制位注意:给定的整数最大为32位假设二进制不包含前导0Example1:Input:5Output:2
Explanation
:Thebinaryrepresentationof5is101
求兵
·
2020-08-13 16:43
Algorithms
【leetcode】300. Longest Increasing Subsequence(c/c++)
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Example:Input:[10,9,2,5,3,7,101,18]Output:4
Explanation
momottyy
·
2020-08-13 15:12
c/c++
leetcode
上一页
6
7
8
9
10
11
12
13
下一页
按字母分类:
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
其他