文章
LeetCode | 1389. 按既定顺序创建目标数组【Python】
<blockquoteLeetCode1389.CreateTargetArrayintheGivenOrder按既定顺序创建目标数组【Easy】【Python】【数组】</blockquoteProblemLeetCode(https://link.se
LeetCode | 1386. Cinema Seat Allocation安排电影院座位【Python】
<blockquoteLeetCode1386.CinemaSeatAllocation安排电影院座位【Medium】【Python】【哈希表】</blockquoteProblemLeetCode(https://link.segmentfault.com/?e
LeetCode | 0113. Path Sum II路径总和 II【Python】
<blockquoteLeetCode0113.PathSumII路径总和II【Medium】【Python】【回溯】</blockquoteProblemLeetCode(https://link.segmentfault.com/?enc%2FkqpTtl
LeetCode | 面试题34. 二叉树中和为某一值的路径【剑指Offer】【Python】
<blockquoteLeetCode面试题34.二叉树中和为某一值的路径【剑指Offer】【Medium】【Python】【回溯】</blockquote问题力扣(https://link.segmentfault.com/?enclGTiF9SqqYr1YtFt
Leetcode3. 无重复字符的最长子串 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/04c289e028e7e7a7125d2bcc3a39fa5d.png)思路用一个字典来存数组元素的index
LeetCode | 0876. Middle of the Linked List链表的中间结点【Python】
<blockquoteLeetCode0876.MiddleoftheLinkedList链表的中间结点【Easy】【Python】【双指针】</blockquoteProblemLeetCode(https://link.segmentfault.com/?
我用JS刷LeetCode | Day 12 | Length of Last Word
我用JS刷LeetCode|Day12|LengthofLastWord最后一个单词的长度:<blockquote说明:现阶段的解题暂未考虑复杂度问题</blockquote首发地址:http://www.brandhuang.com/article/
Leetcode22. 括号生成 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/3df63ad84ee368127acf961534f751ae.png)思路:n的数量既是左括号的数量也是右括号的数
Leetcode206. 反转链表 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/5b05232f936d4e3a45888a448130bc3f.png)思路:定义一个新的head:myhead
Leetcode41. 缺失的第一个正数
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/d7a87ae3a48c1b26bd12978fed0a9edf.png)这道题其实难在他给的要求说明:算法的时间复杂度为O(n),并且只能用
已加载文章中没有匹配内容,试试其他关键词或清空搜索。