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
example1
[LeetCode] 876. Middle of the Linked List
例子,
Example1
:Input:[1,2,3,4,5]Output:Node3fromthislist(Serialization:[3,4,5])Thereturnednodehasvalue3.
朝鲜冷面杀手
·
2020-03-23 14:00
[LeetCode] 63. Unique Paths II
例子,
Example1
:Input:[ [0,0,0], [0,1,0], [0,0,0]]Output:2Explanation:Thereisoneobstacleinthemiddleofthe3x3gridabove.Therearetwowaystoreachthebot
朝鲜冷面杀手
·
2020-03-23 12:00
[LeetCode] 62. Unique Paths
Example1
:Input:m=3,n=2Output:3Explanation:Fromthetop-leftcorner,thereareatotalof3waystoreach
朝鲜冷面杀手
·
2020-03-23 09:00
【python学习记录4】Median of Two Sorted Arrays
Therearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
hitsunbo
·
2020-03-22 22:34
LeetCode刷题系列之Median of Two Sorted Arrays
DescriptionTherearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
溜达溜达就老了
·
2020-03-22 17:47
LeetCode-First Missing Positive
题目要求:在一个给定的整数数组中,检索不在此数组的最小整数;
Example1
:Input:[3,4,-1,1]Output:2解题思路:数组的长度为N,其最多存储N个正整数。
圣地亚哥_SVIP
·
2020-03-21 20:28
【easy】Leetcode 414.Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).
Example1
小双2510
·
2020-03-20 07:37
Third Maximum Number解题报告
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).Example:
Example1
黑山老水
·
2020-03-19 07:26
575. Distribute Candies
不上描述了,上example吧
Example1
:Input:candies=[1,1,2,2,3,3]Output:3Explanation:Therearethreedifferentkindsofcandies
misleadingrei
·
2020-03-18 17:15
[LeetCode] 124. Binary Tree Maximum Path Sum
例子,
Example1
:Input:[1,2,3]1/\23Output:6Example2:Input:[-10,9,20,null,null,15,7] -10 /\ 9 20 / \ 15
朝鲜冷面杀手
·
2020-03-18 14:00
[LeetCode] 687. Longest Univalue Path
例子,
Example1
:Input:5/\45/\\115Output:2Example2:Input:1/\45/\\445Output:2思路是后序遍历,可参考250题。
朝鲜冷面杀手
·
2020-03-18 06:00
Leetcode 3:Longest Substring Without Repeating Characters
Givenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.给出一个字符串,找出无重复字符的最长子串(英语渣渣)
Example1
__Saber__
·
2020-03-18 03:47
Web解决IE6版本下的png图片灰色背景问题
experiment/DD_belatedPNG/2.在中添加代码DD_belatedPNG.fix('.headerimg');注意:1.你可以修复多个选择器的img图片:DD_belatedPNG.fix('.
example1
梓霁
·
2020-03-17 17:24
Longest Continuous Increasing Subsequence
题目Givenanunsortedarrayofintegers,findthelengthoflongestcontinuousincreasingsubsequence(subarray).
Example1
BLUE_fdf9
·
2020-03-16 08:03
4. Median of Two Sorted Arrays
Therearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
Al73r
·
2020-03-14 17:52
100Tips - 柯里化(Currying)
Swift中的柯里化
example1
//num+1的函数funcaddOne(num:Int)->Int{returnnum+1}//将+1变成自定义+adder的函数funcaddTo(adder:Int
FansX
·
2020-03-13 18:58
7.Reverse Integer(Easy)
Reversedigitsofaninteger.反转一个整数的数字
Example1
:x=123,return321Example2:x=-123,return-321看似没有坑,实则不然,因为在这个题目里面
兰缘小妖
·
2020-03-13 17:03
go语言解leetcode习题 4. Median of Two Sorted Arrays
Therearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
倒数第三
·
2020-03-13 10:34
7. Reverse Integer
bitsignedinteger.Yourfunctionshouldreturn0whenthereversedintegeroverflows.输入与输出classSolution{public:intreverse(intx){}};样例
Example1
yansh15
·
2020-03-13 02:35
Leetcode 500: Keyboard Row
returnthewordsthatcanbetypedusinglettersofalphabetononlyonerow'sofAmericankeyboardliketheimagebelow.键盘示意图
Example1
yarving
·
2020-03-12 21:34
Flatten Nested List Iterator解题报告
implementaniteratortoflattenit.Eachelementiseitheraninteger,oralist--whoseelementsmayalsobeintegersorotherlists.Example:
Example1
黑山老水
·
2020-03-12 00:37
Equal Tree Partition解题报告
yourtaskistocheckifit'spossibletopartitionthetreetotwotreeswhichhavetheequalsumofvaluesafterremovingexactlyoneedgeontheoriginaltree.Example:
Example1
黑山老水
·
2020-03-09 23:18
414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).
Example1
西土城小羊
·
2020-03-08 13:22
给定不同单词组成的数组,俩俩拼接成回文,记录顺序索引
////
Example1
://Givenwords=["bat","tab","ca
敲一手烂代码
·
2020-03-08 07:43
LeetCode-414. Third Maximum Number
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).
Example1
冷灬叶枫
·
2020-03-08 04:39
LeetCode #653 Two Sum IV - Input is a BST 两数之和 IV - 输入 BST
GivenaBinarySearchTreeandatargetnumber,returntrueifthereexisttwoelementsintheBSTsuchthattheirsumisequaltothegiventarget.Example:
Example1
air_melt
·
2020-03-06 13:20
LeetCode #897 Increasing Order Search Tree 递增顺序查找树
rearrangethetreeinin-ordersothattheleftmostnodeinthetreeisnowtherootofthetree,andeverynodehasnoleftchildandonly1rightchild.Example:
Example1
air_melt
·
2020-03-05 09:00
Leetcode 54:Spiral Matrix 螺旋矩阵
Example1
:Input:[[1,2,3],[4,5,6],[7,8,9]]Output:[1,2,
爱写Bug
·
2020-03-05 07:39
Leetcode4-Median of Two Sorted Arrays(Python3)
MedianofTwoSortedArraysTherearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
LdpcII
·
2020-03-05 03:08
Linux文本查找命令-grep
example1
:搜索一个文件,最普通模式[root@aliyun-hk1linux-shell-test]#grephellogrep1.shhelloexample2:递归搜索一个目录下的所有文件[
李欢欢
·
2020-03-03 07:44
linux
Linux文本处理命令-echo
example1
:显示一行文本,任何特殊字符都不会被转义[root@aliyun-hk1linux-shell-test]#echohello\nworldhellonworld[root@aliyun-hk1linux-s
李欢欢
·
2020-03-02 02:22
linux
LeetCode(4) ---- Median of Two Sorted Arrays
ProblemTherearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
做梦枯岛醒
·
2020-03-01 18:41
4. Median of Two Sorted Arrays
Therearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
codingXue
·
2020-02-29 13:01
用 CSS3 怎么绘制需要的几何图形
给任何正方形元素设置一个足够大的border-radius,就可以把它变成一个圆形.代码如下:html:css:.size{width:200px;heigh:200px;background:#8BC34A;}.
example1
殖民_FE
·
2020-02-29 06:24
414. Third Maximum Number 第三大元素
returnthethirdmaximumnumberinthisarray.Ifitdoesnotexist,returnthemaximumnumber.ThetimecomplexitymustbeinO(n).
Example1
这就是一个随意的名字
·
2020-02-28 08:03
4. Median of Two Sorted Arrays
DescriptionTherearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).
Example1
Nancyberry
·
2020-02-28 08:56
331. Verify Preorder Serialization of a Binary Tree
._9_/\32/\/\41#6/\/\/\######
Example1
:"9,3,4,
我是你的果果呀
·
2020-02-28 07:42
Leetcode - 392. Is Subsequence
例子:
Example1
:s="abc",t="ahbgdc"Returntrue.Example2:s="axc",t="ahbgdc"Returnfalse.解法:twopointerbase:如果w1
KkevinZz
·
2020-02-28 00:41
LeetCode #9 Palindrome Number 回文数
Determinewhetheranintegerisapalindrome.Anintegerisapalindromewhenitreadsthesamebackwardasforward.Example:
Example1
air_melt
·
2020-02-27 10:53
Q111 Minimum Depth of Binary Tree
举个例子:
Example1
:0return1Exampl
牛奶芝麻
·
2020-02-27 01:38
Leetcode - 494. Target Sum
Example1
:Input:numsis[1,1,1,1,1],Sis3.Output:5Explanation:-1+1+1+1+1=3+1-1+1+1+1=3+1+1-1+1+1=3+1+1+1-
KkevinZz
·
2020-02-26 13:39
LeetCode #345 Reverse Vowels of a String 反转字符串中的元音字母
Description:Writeafunctionthattakesastringasinputandreverseonlythevowelsofastring.Example:
Example1
:Input
air_melt
·
2020-02-26 04:55
思维的认识(一)
举例说明:
EXAMPLE1
当人脑分泌大量内吗啡肽时,人类会极度兴奋并且失去部分理智,在这种时刻,身体和大脑的兴奋感支配着大部分思维活动。
不喜欢帕格尼尼
·
2020-02-26 01:41
pow(x,n)
题目:Implementpow(x,n)
Example1
:Input:2.00000,10Output:1024.00000Example2:Input:2.10000,3Output:9.26100答案
BLUE_fdf9
·
2020-02-25 21:49
529. Minesweeper
Example1
:Input:[['E','E','E','E','E'],['E','E','M','E','E'],['E','E','E','E','E'],['E','E','E','E','E
sherwin29
·
2020-02-23 10:07
397. Integer Replacement 整数替换
Example1
:Input:8Outp
这就是一个随意的名字
·
2020-02-23 05:01
637. Average of Levels in Binary Tree 二叉树每层平均值
Example1
:Input:3/\920/\157Output:[3,14.5,11]Explanation:Theaveragevalueofnodesonlevel0is
这就是一个随意的名字
·
2020-02-22 19:27
LeetCode 014 Longest Common Prefix
Writeafunctiontofindthelongestcommonprefixstringamongstanarrayofstrings.Ifthereisnocommonprefix,returnanemptystring"".
Example1
xiaoyusilen
·
2020-02-22 08:28
3-longest-substring-without-repeating Characters
*
Example1
:**Input:*”abcabcbb”*Output:*3*Explanation:*Theansweris“abc”,withthelengtho
wangyuan302
·
2020-02-21 13:50
思维的认识(二)
列举几例:
Example1
“如果不是…就…”,这类话语几乎存在于生活的每时每刻,患得患失的人总在愚蠢地抱怨周遭的一切。前段时间中国股民迎来了振奋人心的大牛市,那段时间许多人号称傻子都能赚钱。
不喜欢帕格尼尼
·
2020-02-19 02:04
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他