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
领扣lintcode
字符串相乘——大整数乘法
输入:num1=“2”,num2=“3”输出:“6”来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/multiply-strings著作权归
领扣
网络所有
菜鸟日常
·
2025-03-10 23:46
算法
DFS+剪枝去重+排序+回溯算法+DFS遍历叶子节点 47. 全排列 II
1,1,2]输出:[[1,1,2],[1,2,1],[2,1,1]]来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/permutations-ii著作权归
领扣
网络所有
豌豆射手GCC
·
2025-01-29 09:08
leetcode
DFS
Java力扣题解:169 多数元素——投票法
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/majority-element著作权归
领扣
网络所有。
早起之王
·
2025-01-25 16:53
leetcode
leetcode
JS工程化集锦
项目工具模块化JS模块规范CommonJS·AMD·CMD·UMD·ES6NPM版本NPM版本介绍打包构建polyfill工程化篇-JS兼容方案项目管理
LintCode
Review效率工具ESLint方案官方
·
2025-01-21 16:58
LintCode
453. 将二叉树拆成链表
题目描述将一棵二叉树按照前序遍历拆解成为一个假链表。所谓的假链表是说,用二叉树的right指针,来表示链表中的next指针。不要忘记将左儿子标记为null,否则你可能会得到空间溢出或是时间溢出。测试样例输入:{1,2,5,3,4,#,6}输出:{1,#,2,#,3,#,4,#,5,#,6}解释:1/\25/\\3461\2\3\4\5\6输入:{1}输出:{1}解释:11解题思路与方法1.Devi
CW不要无聊的风格
·
2024-09-08 02:33
LeetCode-055-跳跃游戏
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/jump-game/著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请注明出处。
醉舞经阁半卷书
·
2024-09-06 23:36
LeetCode算法题-29. 两数相除(Swift)
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/divide-two-integers著作权归
领扣
网络所有。
entre_los_dos
·
2024-08-23 17:33
2022-08-06
发现影响患者可以开始癫痫病发作,就要进行及时的解开患者的衣
领扣
.按钮,松开腰带,
说痫话
·
2024-02-13 19:19
LeetCode 144 二叉树的前序遍历 - Java 实现
1.题目题目链接:144.二叉树的前序遍历-力扣(LeetCode):https://leetcode.cn/problems/binary-tree-preorder-traversal/著作权归
领扣
网络所有
零一魔法
·
2024-02-13 02:55
LeetCode
java
leetcode
算法
Lintcode
442 Implement Trie solution 题解
【题目描述】Implementatriewithinsert,search,andstartsWithmethods.NoticeYoumayassumethatallinputsareconsistoflowercaselettersa-z.实现一个Trie,包含insert,search,和startsWith这三个方法。注意事项你可以假设所有的输入都是小写字母a-z。【题目链接】www.li
程风破浪会有时
·
2024-02-12 20:32
LintCode
3687 · Check If an Array Is a Valid Sequence (二叉树遍历和分治好题)
3687·CheckIfanArrayIsaValidSequenceAlgorithmsMediumDescriptionGivenabinarytreewitharootnoderoot,wecallthesequenceofnodevaluesinanypathfromtherootnodetoanyleafnodeisa“validsequence”ofthatbinarytree.Now
纸上得来终觉浅 绝知此事要躬行
·
2024-02-10 10:57
leetcode
算法
LeetCode 104. 二叉树的最大深度(java)
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree著作权归
领扣
喜欢喝雪碧的阿埋
·
2024-02-09 21:45
数据结构OJ
leetcode
数据结构
java
283. 移动零
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/move-zeroes著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请
Abeants
·
2024-02-09 21:53
LeetCode-069-x的平方根
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/sqrtx/著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请注明出处。
雄狮虎豹
·
2024-02-09 17:36
LeetCode面试题 02.03. 删除中间节点
不返回任何数据,但该链表变为a->b->d->e->f来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/delete-middle-node-lcci著作权归
领扣
网络所有
小南家的青蛙
·
2024-02-09 15:28
LeetCode
leetcode
java
lintcode
55. 比较字符串
难度:容易1.Description55.比较字符串2.Solutionc++classSolution{public:/***@paramA:Astring*@paramB:Astring*@return:ifstringAcontainsallofthecharactersinBreturntrueelsereturnfalse*/boolcompareStrings(string&A,str
cuizixin
·
2024-02-09 07:57
SpringMVC 1.请求参数检查 2.全局异常处理 3.请求参数封装为Pojo
importlombok.Getter;publicenumErrorEnum{SYSTEM_ERROR(-1,"系统错误"),PARAM_ERROR(-2,"参数错误"),OK(0,"成功"),;@Getterprivatefina
lintcode
zfoo-framework
·
2024-02-09 05:27
#
springboot
http
lintcode
31. Partition Array
image.pnghttps://www.kancloud.cn/kancloud/data-structure-and-algorithm-notes/72953解法一:**自左向右**容易想到的一个办法是自左向右遍历,使用right保存大于等于k的索引,i则为当前遍历元素的索引,总是保持i>=right,那么最后返回的right即为所求。classSolution{public:/***@pa
刘小小gogo
·
2024-02-08 16:26
lintcode
40. 用栈实现队列
难度:中等1.Description40.用栈实现队列2.Solutionpython用两个栈,十分巧妙。classMyQueue:def__init__(self):#dointializationifnecessaryself.stack1=[]self.stack2=[]defadjust(self):iflen(self.stack2)==0:whilelen(self.stack1)>0
cuizixin
·
2024-02-07 21:26
Maximum Subarray - Dynamic Programming Way
Quesitonfrom
lintcode
Givenanarrayofintegers,findacontiguoussubarraywhichhasthelargestsum.NoticeThesubarrayshouldcontainatleastonenumber.ExampleGiventhearray
Star_C
·
2024-02-06 10:23
LeetCode#262 Nim游戏 Java
sdubrz@date:2020.04.22题号:292题目难度:简单考察内容:脑筋急转弯儿原题链接https://leetcode-cn.com/problems/nim-game/题目及官方解法的著作权归
领扣
网络所有
麦克斯韦的妖精
·
2024-02-05 22:58
八股编程
java
leetcode
脑筋急转弯
算法
C#力扣算法:17. 电话号码的字母组合
来源:力扣(LeetCode)链接:https://leetcode.cn/problems/letter-combinations-of-a-phone-number著作权归
领扣
网络所有。
黄瓜炒鸡蛋emm
·
2024-02-05 08:35
C#
算法
算法
leetcode
数据结构
c#
开发语言
933. 最近的请求次数( 队列 或 数组模拟队列Queue )
CodeQuestion933.最近的请求次数来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/number-of-recent-calls/著作权归
领扣
网络所有
Listen 1024
·
2024-02-04 20:28
#
Leetcode每日一题
java
算法
数据结构
队列
leetcode
lintcode
192 Wildcard Matching
WildcardMatching这题和正则表达式那道题极其相似,不过这里*作用改变了,它自己代表匹配任意字符串的作用首先建立二维booleanarraydp[s.length+1][p.length+1],代表s的第几个字符和p的第几个字符是否达到匹配首先dp[0][0]=true,以及dp[i][0]都为false然后对dp[0][j]进行初始化,可知存在“*”的情况,所以要对这个处理下然后两个
Anseis
·
2024-02-04 04:10
LeetCode:108. 将有序数组转换为二叉搜索树
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/balance-a-binary-search-tree著作权归
领扣
网络所有。
天降小纸箱
·
2024-02-04 03:51
leetcode 206:反转链表(python)
来源:力扣(LeetCode)链接:LeetCode206.反转链表著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请注明出处。
nanashi_F
·
2024-02-03 22:08
leetcode
算法
leetcode
python
算法
链表
429.N叉树的层序遍历
输入:root=[1,null,3,2,4,null,5,6]输出:[[1],[3,2,4],[5,6]]来源:力扣(LeetCode)著作权归
领扣
网络所有。
此去经年ToT
·
2024-02-03 16:03
LeetCode刷题
leetcode
c语言
复原IP地址
"]输入:"0000"输出:["0.0.0.0"]来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/restore-ip-addresses著作权归
领扣
网络所有
王王王王王景
·
2024-02-03 12:41
全排列 (
lintcode
:permutations)
给定一个数字列表,返回其所有可能的排列。假设没有重复数字。样例:给出一个列表[1,2,3],其全排列为:[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]代码:classSolution:"""@param:nums:Alistofintegers.@return:Alistofpermutations."""defpermute(self,nums
v1coder
·
2024-02-02 20:49
Leetcode 104 二叉树的最大深度
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/maximum-depth-of-binary-tree著作权归
领扣
禾木清清
·
2024-02-02 09:23
LintCode
-30. 插入区间
题目描述给出一个无重叠的按照区间起始端点排序的区间列表。在列表中插入一个新的区间,你要确保列表中的区间仍然有序且不重叠(如果有必要的话,可以合并区间)。样例插入区间[2,5]到[[1,2],[5,9]],我们得到[[1,9]]。插入区间[3,4]到[[1,2],[5,9]],我们得到[[1,2],[3,4],[5,9]]。解答思路循环待插入区间,比较每个区间和待插入区间。有三种情况,分别处理。代码
悠扬前奏
·
2024-02-01 14:12
【
Lintcode
】612 k closest points
在heap里就要排序,先按d排序,第二是x,第三是y?1维持一个大小为K的max-heap2然后后面每push一个进来,就把最长距离那个pop出去3所以push进heap的值是负的distance,因为到时候可以把最远距离的给pop出去"""Definitionforapoint.classPoint:def__init__(self,a=0,b=0):self.x=aself.y=b"""cla
云端漫步_b5aa
·
2024-02-01 04:35
#LeetCode——415.字符串相加
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/add-strings著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请注明出处。示例
鲨瓜2号
·
2024-01-31 06:25
leetcode
算法
散列表
lintcode
11. Search Range in Binary Search Tree
image.png其实任何一种遍历都可以,只是中序遍历方便于剪枝。中序遍历:本题涉及到二叉查找树的按序输出,应马上联想到二叉树的中序遍历/***DefinitionofTreeNode:*classTreeNode{*public:*intval;*TreeNode*left,*right;*TreeNode(intval){*this->val=val;*this->left=this->rig
刘小小gogo
·
2024-01-31 03:17
【
Lintcode
】1507. Shortest Subarray with Sum at Least K
题目地址:https://www.
lintcode
.com/problem/shortest-subarray-with-sum-at-least-k/description给定一个数组AAA,返回其最短的和大于等于给定数
记录算法题解
·
2024-01-31 00:21
LC
栈
队列
串及其他数据结构
java
算法
leetcode
LeetCode-203-移除链表元素
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/remove-linked-list-elements/著作权归
领扣
网络所有。
雄狮虎豹
·
2024-01-30 10:10
lintcode
9. Fizz Buzz问题
难度:容易1.Description9.FizzBuzz问题2.Solutionpython只让用一个if,但是可以用for呀classSolution:"""@paramn:Aninteger@return:Alistofstrings."""deffizzBuzz(self,n):#writeyourcodehereres=[str(i)foriinrange(1,n+1)]foriinran
cuizixin
·
2024-01-29 16:50
LintCode
1066 · Verify Preorder Serialization of a Binary Tree (二叉树判断好题)
1066·VerifyPreorderSerializationofaBinaryTreeAlgorithmsMediumDescriptionOnewaytoserializeabinarytreeistousepre-ordertraversal.Whenweencounteranon-nullnode,werecordthenode’svalue.Ifitisanullnode,wereco
纸上得来终觉浅 绝知此事要躬行
·
2024-01-29 15:24
算法
LintCode
1534 · Convert Binary Search Tree to Sorted Doubly Linked List (二叉树转双链表好题)
1534·ConvertBinarySearchTreetoSortedDoublyLinkedListAlgorithmsMediumDescriptionConvertaBSTtoasortedcirculardoubly-linkedlistin-place.Thinkoftheleftandrightpointersassynonymoustothepreviousandnextpoint
纸上得来终觉浅 绝知此事要躬行
·
2024-01-29 15:24
leetcode
557. 反转字符串中的单词 III
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/reverse-words-in-a-string-iii著作权归
领扣
网络所有。商业转载请联系官方
Weastsea
·
2024-01-28 06:22
LeetCode-054-螺旋矩阵
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/spiral-matrix/著作权归
领扣
网络所有。商业转载请联系官方授权,非商业转载请注明出处。
雄狮虎豹
·
2024-01-27 17:49
LeetCode-005-最长回文子串
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-palindromic-substring/著作权归
领扣
网络所有。
雄狮虎豹
·
2024-01-27 13:05
LeetCode-155-最小栈
来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/min-stack/著作权归
领扣
网络
雄狮虎豹
·
2024-01-26 18:01
lintcode
373. 奇偶分割数组
难度:容易1.Description373.奇偶分割数组2.SolutionpythonclassSolution:"""@param:nums:anarrayofintegers@return:nothing"""defpartitionArray(self,nums):#writeyourcodeheren=len(nums)ifn0:#findoddnumright-=1ifleft
cuizixin
·
2024-01-25 10:58
Lintcode
-背包问题IX
题目Youhaveatotalof10*nthousandyuan,hopingtoapplyforauniversityabroad.Theapplicationisrequiredtopayacertainfee.GivethecostofeachuniversityapplicationandtheprobabilityofgettingtheUniversity'soffer,andthe
爱秋刀鱼的猫
·
2024-01-20 01:43
力扣解法汇总1626. 无矛盾的最佳球队
目录链接:力扣编程题-解法汇总_分享+记录-CSDN博客GitHub同步刷题项目:GitHub-September26/java-algorithms:算法题汇总,包含牛客,leetCode,
lintCode
失落夏天
·
2024-01-18 22:28
编程题
leetcode
算法
职场和发展
力扣643.子数组最大平均数I-C语言实现
来源:力扣(LeetCode)链接:子数组最大平均数I著作权归
领扣
网络所有。商业转载请联系官方授权,非商业
小灰不停前进
·
2024-01-18 10:07
力扣刷题
c语言
算法
力扣 387. 字符串中的第一个唯一字符
loveleetcode”返回2来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/first-unique-character-in-a-string著作权归
领扣
网络所有
冷酷的摸鱼小将
·
2024-01-17 14:51
力扣
leetcode
算法
职场和发展
【SQL】SQL语法小结
相关资料参考链接1:SQL语法(超级详细)参考链接2:史上超强最常用SQL语句大全SQL练习网站:CSDN、牛客、LeetCode、
LintCode
SQL相关视频:推荐书籍:文章目录数据分析对SQL的要求
小手の冰凉
·
2024-01-17 07:54
【数据库】
sql
数据库
oracle
编程竞赛-消息存取
目录链接:力扣编程题-解法汇总_分享+记录-CSDN博客GitHub同步刷题项目:GitHub-September26/java-algorithms:算法题汇总,包含牛客,leetCode,
lintCode
失落夏天
·
2024-01-16 22:03
编程题
算法
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他