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题
解-535. Encode and Decode TinyURL
题目:TinyURLisaURLshorteningservicewhereyouenteraURLsuchashttps://leetcode.com/problems/design-tinyurlanditreturnsashortURLsuchashttp://tinyurl.com/4e9iAk.DesigntheencodeanddecodemethodsfortheTinyURLser
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-167. Two Sum II - Input array is sorted
题目:Givenanarrayofintegersthatisalreadysortedinascendingorder,findtwonumberssuchthattheyadduptoaspecifictargetnumber.ThefunctiontwoSumshouldreturnindicesofthetwonumberssuchthattheyadduptothetarget,wher
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode
leetcode题
解-123. Best Time to Buy and Sell Stock III
题目:Sayyouhaveanarrayforwhichtheithelementisthepriceofagivenstockondayi.Designanalgorithmtofindthemaximumprofit.Youmaycompleteatmosttwotransactions.Note:Youmaynotengageinmultipletransactionsatthesameti
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-696. Count Binary Substrings
从今天开始刷字符串部分的题目,这部分我会记录每一题的简短思路,方便最后写一个总结性的博客。接下来先看一下第一道题696.CountBinarySubstrings:题目:Giveastrings,countthenumberofnon-empty(contiguous)substringsthathavethesamenumberof0'sand1's,andallthe0'sandallthe1
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-94. Binary Tree Inorder Traversal
题目:Givenabinarytree,returntheinordertraversalofitsnodes’values.Forexample:Givenbinarytree[1,null,2,3],1\2/3return[1,3,2].其实题目就是要中序遍历二叉树的值。题目中也提到了,可以使用递归的方法,也可以使用遍历的方法。所以这里就讲两种方法的代码写出来即可。代码很简单,不做过多解释。递
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-560. Subarray Sum Equals K
题目:Givenanarrayofintegersandanintegerk,youneedtofindthetotalnumberofcontinuoussubarrayswhosesumequalstok.Example1:Input:nums=[1,1,1],k=2Output:2Note:Thelengthofthearrayisinrange[1,20,000].Therangeofnu
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-410. Split Array Largest Sum
题目:Givenanarraywhichconsistsofnon-negativeintegersandanintegerm,youcansplitthearrayintomnon-emptycontinuoussubarrays.Writeanalgorithmtominimizethelargestsumamongthesemsubarrays.Note:Ifnisthelengthofar
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode题
解-141. Linked List Cycle
题目:Givenalinkedlist,determineifithasacycleinit.Followup:Canyousolveitwithoutusingextraspace?上午终于把数组的题目全部都刷完了,接下来开始看链表的题目。第一道题很简单,就是判断一个链表中是否存在环。我们知道,如果一个链表中没有环,那么我们在遍历的过程中最后一个元素会指向空地址。但是如果单纯的使用遍历法,当存在
liuchongee
·
2020-06-24 06:50
leetcode刷题
leetcode
leetcode题
解-349.Intersection of Two Arrays && 350. Intersection of Two Arrays II
349.Giventwoarrays,writeafunctiontocomputetheirintersection.Example:Givennums1=[1,2,2,1],nums2=[2,2],return[2].Note:Eachelementintheresultmustbeunique.其实就是求两个数组的公共子集。思路一:使用两个HashSet,一个用于存储结果,另一个用于将其中一
liuchongee
·
2020-06-24 06:49
leetcode刷题
Leetcode题
解:Median of Two Sorted Arrays
原题:https://leetcode.com/problems/median-of-two-sorted-arrays/description/Therearetwosortedarraysnums1andnums2ofsizemandnrespectively.Findthemedianofthetwosortedarrays.Theoverallruntimecomplexityshould
AlbertSheldon
·
2020-06-24 05:19
算法
LeetCode题
解: LRU Cache 缓存设计
设计并实现最近最久未使用(LeastRecentlyUsed)缓存。链接:https://oj.leetcode.com/problems/lru-cache/题目描述:DesignandimplementadatastructureforLeastRecentlyUsed(LRU)cache.Itshouldsupportthefollowingoperations:getandset.get(
架构进化论
·
2020-06-24 03:40
面试官系列
leetcode
缓存
cache
操作系统
数据结构
LeetCode 题解 | 198.打家劫舍
LeetCode题
解|198.打家劫舍198.打家劫舍打家劫舍-力扣(LeetCode)leetcode-cn.com题目描述你是一个专业的小偷,计划偷窃沿街的房屋。
kingmax54212008
·
2020-06-24 01:49
动态规划和递归算法
假定有一个
LeetCode题
目1.使用递归算法我们需要判断改题目是否由多个子任务组成,可以嵌套成递归的形式,在这一步我们往往需要一个递归表达式。
秃然变强了
·
2020-06-23 23:48
LeetCode
LeetCode每日一题:3.3合并排序的数组(八十三)
合并排序的数组一、
LeetCode题
解瞧一瞧~博健的
LeetCode题
解:Gitbook版本传送门博健的
LeetCode题
解:CSDN传送门有趣的CSS:Gitbook传送门前端进阶笔记:Gitbook
余光、
·
2020-06-23 21:17
#
LeetCode题解系列
算法与数据结构+
LeetCode题
解-Js版
LeetCode题
解Js版https://webbj97.github.io/leetCode-Js/题外话
LeetCode题
解:传送门前端笔记:传送门项目背景旨在提高自己对算法的理解,将题解总结成文章
余光、
·
2020-06-23 21:44
#
LeetCode题解系列
LeetCode
前端算法
算法
数据结构
gitbook
LeetCode题
解 => 344.反转字符串(五十六)
反转字符串一、
LeetCode题
解瞧一瞧~博健的
LeetCode题
解:Gitbook版本传送门博健的
LeetCode题
解:CSDN传送门前端进阶笔记:Gitbook传送门二、算法题题目编写一个函数,其作用是将输入的字符串反转过来
余光、
·
2020-06-23 21:44
#
LeetCode题解系列
LeetCode总结
除各个题目有特殊巧妙的解法以外,大部分题目都是经典的算法或者数据结构,因此做了如下小结,具体的解题思路可以搜索我的博客:
LeetCode题
解题目算法数据结构注意事项CloneGraphBFS哈希表WordLadderIIBFS
飞起的小象
·
2020-06-23 18:25
Leetcode题
解-461. Hamming Distance
Leetcode题
解-461.HammingDistance【easy】TheHammingdistancebetweentwointegersisthenumberofpositionsatwhichthecorrespondingbitsaredifferent.Giventwointegersxandy
hzw2945
·
2020-06-23 17:21
Leetcode
[LeetCode] 037. Sudoku Solver (Hard) (C++)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode037.SudokuSolver
hcbbt
·
2020-06-23 13:40
=====算法相关=====
+Leetcode
+基础算法
Leetcode
题解
[LeetCode] 039. Combination Sum (Medium) (C++)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode039.CombinationSum
hcbbt
·
2020-06-23 13:40
=====算法相关=====
+基础算法
+Leetcode
leetcode
算法
C++
[LeetCode] 038. Count and Say (Easy) (C++/Python)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode038.CountandSay
hcbbt
·
2020-06-23 13:40
+基础算法
+Leetcode
=====算法相关=====
Leetcode
题解
[leetcode] 040. Combination Sum II (Medium) (C++)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode040.CombinationSumII
hcbbt
·
2020-06-23 13:40
=====算法相关=====
+基础算法
+Leetcode
[LeetCode] 016. 3Sum Closest (Medium) (C++/Java/Python)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode016.3Sum_Closest
hcbbt
·
2020-06-23 13:09
+基础算法
+Leetcode
Leetcode
题解
[LeetCode] 006. ZigZag Conversion (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode006.ZigZag_Conversion
hcbbt
·
2020-06-23 13:08
+基础算法
+Leetcode
=====算法相关=====
Leetcode
题解
[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
·
2020-06-23 13:08
=====算法相关=====
+Leetcode
+基础算法
Leetcode
题解
[LeetCode] 009. Palindrome Number (Easy) (C++/Java/Python)
索引:[LeetCode]
Leetcode题
解索引(C++/Java/Python/Sql)Github:https://github.com/illuz/leetcode009.Palindrome_Number
hcbbt
·
2020-06-23 13:08
=====算法相关=====
+基础算法
+Leetcode
Leetcode
题解
LeetCode题
号[100,199]刷题总结
目录前言105.从前序与中序遍历序列构造二叉树思路114.二叉树展开为链表思路115.不同的子序列(Hard)思路116.填充每个节点的下一个右侧节点指针思路117.填充每个节点的下一个右侧节点指针II思路123.买卖股票的最佳时机III(Hard)思路124.二叉树中的最大路径和(Hard)思路128.最长连续序列(Hard)思路131.分割回文串思路132.分割回文串II(Hard)思路134
Tiny_W
·
2020-06-23 13:00
LeetCode题
号[1,99]刷题总结
目录前言2.两数相加思路3.无重复字符的最长子串思路4.寻找两个正序数组的中位数(Hard)思路5.最长回文子串思路6.Z字形变换思路10.正则表达式匹配(Hard)思路23.合并K个排序链表思路11.盛最多水的容器思路15.三数之和思路16.最接近的三数之和思路19.删除链表的倒数第N个节点思路25.K个一组翻转链表(Hard)思路31.下一个排列思路32.最长有效括号思路33.搜索旋转排序数组
Tiny_W
·
2020-06-23 13:00
LeetCode题
解——83. 删除排序链表中的重复元素
题目给定一个排序链表,删除所有重复的元素,使得每个元素只出现一次。示例示例1:输入:1->1->2输出:1->2示例2:输入:1->1->2->3->3输出:1->2->3思路解决删除重复问题的一个有效的思路就是双指针法,在这题中,首指针指向第一个节点,尾指针指向与首指针值第一个不相同的节点,然后head.next=tail就可以删除其中与首指针值相同的节点了,代码如下:publicListNod
suye233
·
2020-06-23 12:56
LeetCode题解
开启LeetCode之路
终于有时间开始每天坚持做
LeetCode题
,博主现在以在CSDN上撰写解题思路为自我监督方式,坚持每天将当天的题目的解题思路记录下来。
PaniniGu
·
2020-06-23 10:23
Leetcode
LeetCode题
解-6. ZigZag Conversion
链接题目地址https://leetcode.com/problems/zigzag-conversion/github解题https://github.com/gatieme/LeetCode/tree/master/006-ZigZagConversionCSDN题解:http://blog.csdn.net/gatieme/article/details/50889937题目描述字符串“PA
JeanCheng
·
2020-06-23 09:14
┈┈【LeetCode
面试题】
LeetCode题
解记录——更新中
我的博客:枫之羽github源码地址:https://github.com/fengzhiyugithub/LeetCode/tree/master/Directory坚持每天更新一至两篇。向更优算法迈进~【尽量不断更】更新于:2018-11-12题目DifficultyC++JavaPython备注1.TwoSumEasyC++JavaPython两数之和2.AddTwoNumbersMediu
feng_zhiyu
·
2020-06-23 07:24
题集
dfs题目这样去接题,秒杀
leetcode题
目
点个赞,看一看,好习惯!本文GitHubhttps://github.com/OUYANGSIHAI/JavaInterview已收录,这是我花了3个月总结的一线大厂Java面试总结,本人已拿大厂offer。另外,原创文章首发在我的个人博客:blog.ouyangsihai.cn,欢迎访问。今天来聊聊dfs的解题方法,这些方法都是总结之后的出来的经验,有值得借鉴的地方。1从二叉树看dfs二叉树的思
欧阳思海
·
2020-06-23 07:32
java
LeetCode整理---第二、三周
代码地址(在力扣运行均已通过)https://github.com/tomjerry99/algorithm_
leetcode题
目(https://leetcode-cn.com/problemset/
启明星的指引
·
2020-06-23 07:16
数据结构
算法
LeetCode
LeetCode题
解汇总(C++ Java Python,含题目翻译)
github:https://github.com/lilong-dream/本文同时发布在我的个人网站,欢迎访问:http://www.lilongdream.com/2014/04/08/30.html
LeetCode
lilong_dream
·
2020-06-23 05:54
LeetCode
LeetCode题
目难度分布(含面试频率及使用的数据结构与算法)
原文链接:LeetCodeQuestionDifficultyDistribution(墙外)IDQuestionDiffFreqDataStructureAlgorithms1TwoSum25arraysortsetTwoPointers2AddTwoNumbers34linkedlistTwoPointersMath3LongestSubstringWithoutRepeatingCharac
lilong_dream
·
2020-06-23 05:54
LeetCode
LeetCode
Leetcode题
解——算法思想之排序
快速选择堆1.KthElement桶排序1.出现频率最多的k个元素2.按照字符出现次数对字符串排序荷兰国旗问题1.按颜色进行排序快速选择用于求解KthElement问题,也就是第K个元素的问题。可以使用快速排序的partition()进行实现。需要先打乱数组,否则最坏情况下时间复杂度为O(N2)。堆用于求解TopKElements问题,也就是K个最小元素的问题。可以维护一个大小为K的最小堆,最小堆
dieshi8689
·
2020-06-23 04:47
LeetCode 33. 搜索旋转排序数组
LeetCode题
目假设按照升序排序的数组在预先未知的某个点上进行了旋转。(例如,数组[0,1,2,4,5,6,7]可能变为[4,5,6,7,0,1,2])。
谁动了我的代码QAQ
·
2020-06-23 03:04
“手把手撕
LeetCode题
目,扒各种算法套路的裤子”
目前,这个仓库总共有6章,共60多篇原创文章,基本上都是基于
LeetCode题
目,涵盖所有题型和技
CSDN资讯
·
2020-06-23 01:49
LeetCode题
解(三)
LeetCode题
解(三)MergeSortedArrayGiventwosortedintegerarraysnums1andnums2,mergenums2intonums1asonesortedarray.Note
corfox_liu
·
2020-06-23 00:15
算法
LeetCode 求和问题总结(2sum,3sum,ksum)
leetcode题
中有几道求和问题,上网查了一下,感觉这篇博客写的不错,就转载收藏了。
chenlong226
·
2020-06-22 22:27
leetcode
c++
【
LeetCode题
解】32. 最长有效括号
题目给定一个只包含'('和')'的字符串,找出最长的包含有效括号的子串的长度。示例1:输入:"(()"输出:2解释:最长有效括号子串为"()"示例2:输入:")()())"输出:4解释:最长有效括号子串为"()()"题解括号匹配的题,首先就是想stack的方式。我们借助stack来求解。需要定义个start变量来记录合法括号串的起始位置,我们遍历字符串,如果遇到左括号,则将当前下标压入栈,如果遇到
码蹄疾
·
2020-06-22 22:08
leetcode题
目解答记录
相信两年时间可以改变很多事情,所以拼命努力!1、两数之和classSolution(object):deftwoSum(self,nums,target):""":typenums:List[int]:typetarget:int:rtype:List[int]"""map={}fori,numinenumerate(nums):iftarget-numinmap:return([map[targ
chenguiyuan1234
·
2020-06-22 21:25
python
leetcode题
目分类汇总(持续更新)
文章目录一、概述二、分类2.1链表2.2栈、队列、堆2.3贪心算法2.4二叉树和图一、概述利用leetcode刷题提高数据结构和coding能力时,不建议从头开始直接刷,原因如下:一是找信心:一开始不幸碰到看起来简单却没思路的题真的很崩溃,通过分类就能知道这道题是典型的一类题还是只是一道很细节的题甚至“奇技淫巧”。二是提高效率:有时吃透一道题就可以解一大类。比如刷多了深度优先、广度优先、树的遍历之
陈小虾
·
2020-06-22 21:35
leetcode
MaxGap
leetcode题
目(桶排序)
Givenanunsortedarray,findthemaximumdifferencebetweenthesuccessiveelementsinitssortedform.Trytosolveitinlineartime/space.Return0ifthearraycontainslessthan2elements.Youmayassumeallelementsinthearrayaren
cainiaoxiaomin
·
2020-06-22 19:01
笔试编程题
C++
leetcode题
目 二分查找升级版
题目:Givenasortedarrayofintegers,findthestartingandendingpositionofagiventargetvalue.Youralgorithm’sruntimecomplexitymustbeintheorderofO(logn).Ifthetargetisnotfoundinthearray,return[-1,-1].Forexample,Gi
cainiaoxiaomin
·
2020-06-22 19:01
笔试编程题
LeetCode - 验证回文字符串
GitHub:https://github.com/biezhihua/
LeetCode题
目给定一个字符串,确定它是否是回文,只考虑字母数字字符和忽略大小写。
别志华
·
2020-06-22 17:01
LeetCode
消灭LeetCode
LeetCode - 旋转图像
GitHub:https://github.com/biezhihua/
LeetCode题
目给定一个n×n的二维矩阵表示一个图像。将图像旋转90度(顺时针)。
别志华
·
2020-06-22 17:01
LeetCode
消灭LeetCode
或许是一本可以彻底改变你刷 LeetCode 效率的题解书
经过了半年时间打磨,投入诸多人力,这本
LeetCode题
解书终于快要和大家见面了。目前已经完成了大部分章节的编写工作,预计经过一段时间的打磨就会和大家见面啦????????????????????。
fe_lucifer
·
2020-06-22 15:08
从电商数据看现在口罩价格到底如何
今天小猪不做
leetcode题
解啦,而是把视线放在一件最近很让人揪心的事情,那就是新型冠状病毒。背景小猪不是生物学生或者医学生,所以对于病毒本身的分析或者相关paper阅读真是无能为力。
fe_lucifer
·
2020-06-22 15:08
上一页
54
55
56
57
58
59
60
61
下一页
按字母分类:
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
其他