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(128)-Longest Consecutive Sequence(最长连续序列)
findthelengthofthelongestconsecutiveelementssequence.YouralgorithmshouldruninO(n)complexity.Example:Input:[100,4,200,1,3,2]Output:4
Explanation
Fly_Fly_Zhang
·
2020-08-03 12:58
LeetCodeTop100
集合解决最长连续序列问题
C Programming Test And Answer 04
#includeintmain(){constchar*s="";charstr[]="Hello";s=str;while(*s)printf("%c",*s++);return0;}
Explanation
Master Chicken
·
2020-08-03 04:51
sanfoundry
C Programming Test And Answer 03
intbit1:1;intbit3:4;intbit4:4;}bit={1,2,13};printf("%d,%d,%d\n",bit.bit1,bit.bit3,bit.bit4);return0;}
Explanation
Master Chicken
·
2020-08-03 04:51
sanfoundry
Leetcode算法——69、sqrt(x)
示例:Example1:Input:4Output:2Example2:Input:8Output:2
Explanation
:Thesquarerootof8is2.82842...,andsincethedecimalpartistruncated
HappyRocking
·
2020-08-02 15:27
python
算法
414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
sherwin29
·
2020-08-01 12:53
Lits convert(转换成) String
Listlist=newArrayListe.toString()).reduce("",String::concat);
Explanation
:mapconvertsIntegerstreamtoStringstream
minwei爱zhuang
·
2020-08-01 08:54
工作内容
arts打卡第二周
rotatethearraytotherightbyksteps,wherekisnon-negative.Example1:Input:[1,2,3,4,5,6,7]andk=3Output:[5,6,7,1,2,3,4]
Explanation
weixin_33962923
·
2020-08-01 04:50
LeetCode: 479. Largest Palindrome Product
Findthelargestpalindromemadefromtheproductoftwon-digitnumbers.Sincetheresultcouldbeverylarge,youshouldreturnthelargestpalindromemod1337.Example:Input:2Output:987
Explanation
帘外雨
·
2020-08-01 01:44
java
leetcode
数字
1409. Queries on a Permutation With Key
Example1:Input:queries=[3,1,2,1],m=5Output:[2,1,2,1]
Explanation
:The
habibah_chang
·
2020-07-31 16:00
514. Freedom Trail
(假设:1.密码一定能被拼出2.顺时针逆时针都可以转)巨大的密码盘图Example:Input:ring="godding",key="gd"Output:4
Explanation
:Forthefirstkeycharacter'g
冷殇弦
·
2020-07-31 15:37
Leetcode算法——14、最长公共前缀子串
:Example1:Input:[“flower”,“flow”,“flight”]Output:“fl”Example2:Input:[“dog”,“racecar”,“car”]Output:“”
Explanation
HappyRocking
·
2020-07-31 13:23
python
算法
LeetCode --- 812. Largest Triangle Area 解题报告
Youhavealistofpointsintheplane.Returntheareaofthelargesttrianglethatcanbeformedbyany3ofthepoints.Example:Input:points=[[0,0],[0,1],[1,0],[0,2],[2,0]]Output:2
Explanation
杨鑫newlfe
·
2020-07-31 10:44
Python
算法
LeetCode
Python
算法
LeetCode
453. Minimum Moves to Equal Array Elements
findtheminimumnumberofmovesrequiredtomakeallarrayelementsequal,whereamoveisincrementingn-1elementsby1.Example:Input:[1,2,3]Output:3
Explanation
Nancyberry
·
2020-07-30 23:44
LeetCode #453 Minimum Moves to Equal Array Elements 最小移动次数使数组元素相等
findtheminimumnumberofmovesrequiredtomakeallarrayelementsequal,whereamoveisincrementingn-1elementsby1.Example:Input:[1,2,3]Output:3
Explanation
air_melt
·
2020-07-30 19:03
LeetCode50 Pow(x, n) DIY指数函数
2.00000,10Output:1024.00000Example2:Input:2.10000,3Output:9.26100Example3:Input:2.00000,-2Output:0.25000
Explanation
李歇特冯·兹拜因巴哈
·
2020-07-30 15:04
LeetCode实践
leetcode50
2.00000,10Output:1024.00000Example2:Input:2.10000,3Output:9.26100Example3:Input:2.00000,-2Output:0.25000
Explanation
左小楼先生
·
2020-07-30 15:56
leetcode
leetcode简单题 414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
zimengxueying
·
2020-07-30 13:10
leetcode
LC 96. Unique Binary Search Trees
Example:Input:3Output:5
Explanation
:Givenn=3,thereareatotalof5uniqu
Ayam_Odnet
·
2020-07-30 09:35
[LeetCode] 343. Integer Break
breakitintothesumofatleasttwopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Example1:Input:2Output:1
Explanation
CNoodle
·
2020-07-30 02:00
找到最长子字符串的长度,并且所有字符不重复
Example:Input:“abcabcbb”Output:3
Explanation
:满足条件的最长子字符串为“abc”,长度为3.思路:令max=0,从头遍历字符串,边遍历边计数count,当遍历到与前面存在相同字符处时
LucianaMq
·
2020-07-29 12:03
面试题
神经网络-CNN结构和语音识别应用
一、基本结构入门介绍:https://ujjwalkarn.me/2016/08/11/intuitive-
explanation
-convnets/参考deeplearning.IanGoodfellow
过得很好梵蒂冈
·
2020-07-29 11:04
Laravel 定时任务调度 的 Artisan 命令调度
1、创建命令phpartisanmake:commandcommand_name--command=artisan_command_name#
Explanation
:#command_name:生成的文件名
大大大温
·
2020-07-29 10:00
LeeCode 798. Smallest Rotation with Highest Score
题意Example1:Input:[2,3,1,4,0]Output:3
Explanation
:ScoresforeachKarelistedbelow:K=0,A=[2,3,1,4,0],score2K
team79
·
2020-07-29 10:32
LeetCode
java 数组面试2
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example1:Input:[3,2,1]Output:1
Explanation
技术与表达同等重要
·
2020-07-28 20:28
grad-cam 、cam 和热力图,基于keras的实现
http://bindog.github.io/blog/2018/02/10/model-
explanation
/http://www.sohu.com/a/216216094_473283https
weixin_33953249
·
2020-07-28 18:14
LeetCode·152. Maximum Product Subarray
findthecontiguoussubarraywithinanarray(containingatleastonenumber)whichhasthelargestproduct.Example1:Input:[2,3,-2,4]Output:6
Explanation
seuStones
·
2020-07-28 13:21
Informal
essay
《剑指offer》48--最长不含重复字符的子字符串[C++]
Example1:Input:"abcabcbb"Output:3
Explanation
:Theansweris"abc",withthelengthof3.Example2:Input:"bbbbb"Output
贫道绝缘子
·
2020-07-28 05:25
C++
LeetCode Array Easy 485. Max Consecutive Ones
DescriptionGivenabinaryarray,findthemaximumnumberofconsecutive1sinthisarray.Example1:Input:[1,1,0,1,1,1]Output:3
Explanation
baobo4566
·
2020-07-27 19:50
GPU随想——OpenGL辅助工具
Linux图形子系统简介(根据wikipedia,x.org、ajax的《dri-
explanation
.txt》等资料)。我们知道操作系统上与用户交互的方式有两种:命令行与窗口系统(
eydwyz
·
2020-07-27 11:37
GPU
0258. Add Digits (E)
Givenanon-negativeintegernum,repeatedlyaddallitsdigitsuntiltheresulthasonlyonedigit.Example:Input:38Output:2
Explanation
墨云黑
·
2020-07-27 09:00
0258. Add Digits (E)
Givenanon-negativeintegernum,repeatedlyaddallitsdigitsuntiltheresulthasonlyonedigit.Example:Input:38Output:2
Explanation
墨云黑
·
2020-07-27 09:00
1252. Cells with Odd Values in a Matrix
Example1:Input:n=2,m=3,indices=[[0,1],[1,1]]Output:6
Explanation
:Initialmatrix=[[0,0,0],[0,0,0]].Afterapplyingfirstincre
habibah_chang
·
2020-07-19 10:00
1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
Example1:Input:k=7Output:2
Explanation
:TheFibonaccinumbersare:1,1,2,3,5,8,13,...Fork=7wecanuse2+5=7.Example2
habibah_chang
·
2020-07-18 16:00
【三次过】Lintcode 1353. 根节点到叶节点求和
举个例子:root-to-leaf路径1->2->3,它代表数字123,找到所有根到叶的数的总和样例Example:Input:[1,2,3]1/\23Output:25
Explanation
:Theroot-to-leafpath1
小马哥MAX
·
2020-07-16 03:34
DFS
二叉树
lintcode
leetcode111 爬楼梯 python实现
样例Example1:Input:n=3Output:3
Explanation
:1)1,1,12)1,23)2,1total3.Example2:Input:n=1Output:1
Explanation
总裁余
·
2020-07-16 01:23
leetcode学习笔记
Number of Matching Subsequences--leetcode 792
findthenumberofwords[i]thatisasubsequenceofS.Example:Input:S="abcde"words=["a","bb","acd","ace"]Output:3
Explanation
佳悦
·
2020-07-15 22:08
algorithms
487. Max Consecutive Ones II
findthemaximumnumberofconsecutive1sinthisarrayifyoucanflipatmostone0.Example1:Input:[1,0,1,1,0]Output:4
Explanation
sherwin29
·
2020-07-15 14:45
599. Minimum Index Sum of Two Lists
Example:Input:["Shogun","TapiocaExpress","BurgerKing","KFC"]["KFC","Shogun","BurgerKing"]Output:["Shogun"]
Explanation
DrunkPian0
·
2020-07-15 13:53
LeetCode233 Number of Digit One
countthetotalnumberofdigit1appearinginallnon-negativeintegerslessthanorequalton.Example:Input:13Output:6
Explanation
zhangjun62
·
2020-07-15 12:25
LeetCode
晨哥Leetcode 363. Max Sum of Rectangle No Larger Than K
findthemaxsumofarectangleinthematrixsuchthatitssumisnolargerthank.Example:Input:matrix=[[1,0,1],[0,-2,3]],k=2Output:2
Explanation
老晨磕技术
·
2020-07-15 09:13
treeset/map
【LeetCode 4】 Median of Two Sorted Arrays
leetcode.com/problems/median-of-two-sorted-arrays/discuss/2481/Share-my-O(log(min(mn))-solution-with-
explanation
Britjeans
·
2020-07-15 02:05
algorithm
leetcode
【并查集】A007_LC_最长连续序列(记忆化搜索 / 并查集 (代办))
findthelengthofthelongestconsecutiveelementssequence.YouralgorithmshouldruninO(n)complexity.Input:[100,4,200,1,3,2]Output:4
Explanation
ByteSinging
·
2020-07-14 21:40
#
并查集
300 Longest Increasing Subsequence
Givenanunsortedarrayofintegers,findthelengthoflongestincreasingsubsequence.Example:Input:[10,9,2,5,3,7,101,18]Output:4
Explanation
烟雨醉尘缘
·
2020-07-14 20:21
Python实现"二叉树的所有路径"的两种方法
给定一颗二叉树,返回它从根结点到叶子结点的所有路径注意:叶子结点没有子树Example:Input:1/\23\5Output:["1->2->5","1->3"]
Explanation
:Allroot-to-leafpathsare
求兵
·
2020-07-14 16:53
Algorithms
Longest Substring Without Repeating Characters
LongestSubstringWithoutRepeatingCharactersGivenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Example1:Input:"abcabcbb"Output:3
Explanation
dengwenhui5837
·
2020-07-14 09:42
[Leetcode] 233. Number of Digit One
countthetotalnumberofdigit1appearinginallnon-negativeintegerslessthanorequalton.Example:Input:13Output:6
Explanation
Daisy么么哒
·
2020-07-14 08:06
Leetcode
Chapter11 Ⅳ~Chapter12 Ⅳ
explanation
:averysmallroominahousewherefoodiskept=larder2.giddyIfeeljustalittlegiddy.
explanation
:everythingseemstobe
草叮
·
2020-07-14 03:25
Leetcode 343 Integer Break
breakitintothesumofatleasttwopositiveintegersandmaximizetheproductofthoseintegers.Returnthemaximumproductyoucanget.Example1:Input:2Output:1
Explanation
Mereder
·
2020-07-14 02:59
LeetCode 363. Max Sum of Rectangle No Larger Than K 红黑树无法用栈取代
findthemaxsumofarectangleinthematrixsuchthatitssumisnolargerthank.Example:Input:matrix=[[1,0,1],[0,-2,3]],k=2Output:2
Explanation
taoqick
·
2020-07-14 02:09
算法
c++
183. 木材加工
样例样例1输入:L=[232,124,456]k=7输出:114
Explanation
:我们可以把它分成114cm的7段,而115cm不可以样例2输入:L=[1,2,3]k=7输出:0说明:很显然我们不能
风不再来
·
2020-07-14 00:00
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
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
其他