自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

负雪明烛

算法题博主,7 年写了 1000 多篇 LeetCode 题解,致力于帮助更多人拿到满意的 Offer!

  • 博客(27)
  • 收藏
  • 关注

原创 LeetCode 力扣算法题解汇总,All in One

我刷过的所有 leetcode 算法题解的汇总。题目的排列顺序是按照先Easy再Medium再Hard排列的,暂时还没有把题目全部整理完成。后序我会把刷过的所有的题目都整理到这个文档里。如果想看我全部的力扣算法题解,可以看我的题解博客:[fuxuemingzhu.cn](fuxuemingzhu.cn)

2018-12-20 10:11:28 12567 8

原创 【LeetCode】966. Vowel Spellchecker 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法字典日期题目地址:https://leetcode.com/problems/vowel-spellchecker/description/题目描述Given a wordlist, we want to implement a spellchecke...

2018-12-30 15:22:58 894

原创 【LeetCode】967. Numbers With Same Consecutive Differences 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法DFS日期题目地址:https://leetcode.com/problems/numbers-with-same-consecutive-differences/题目描述Return all non-negative integers of leng...

2018-12-30 14:38:03 1351 1

原创 【LeetCode】965. Univalued Binary Tree 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法BFS日期题目地址:https://leetcode.com/problems/univalued-binary-tree/题目描述A binary tree is univalued if every node in the tree has the...

2018-12-30 14:18:37 1313

原创 【LeetCode】174. Dungeon Game 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法动态规划日期题目地址:https://leetcode.com/problems/dungeon-game/题目描述The demons had captured the princess § and imprisoned her in the bot...

2018-12-29 16:38:18 1440

原创 【LeetCode】51. N-Queens 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法回溯法日期题目地址:https://leetcode.com/problems/n-queens/题目描述The n-queens puzzle is the problem of placing n queens on an n×n chessboa...

2018-12-23 23:10:08 1108

原创 【LeetCode】212. Word Search II 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法前缀树日期题目地址:https://leetcode.com/problems/word-search-ii/题目描述Given a 2D board and a list of words from the dictionary, find all ...

2018-12-23 22:07:08 1775

原创 【LeetCode】963. Minimum Area Rectangle II 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法线段长+线段中心+字典日期题目地址:https://leetcode.com/problems/minimum-area-rectangle-ii/题目描述Given a set of points in the xy-plane, determine...

2018-12-23 16:30:34 1882

原创 【LeetCode】962. Maximum Width Ramp 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法单调栈日期题目地址:https://leetcode.com/problems/maximum-width-ramp/题目描述Given an array A of integers, a ramp is a tuple (i, j) for whic...

2018-12-23 16:09:22 1690

原创 【LeetCode】961. N-Repeated Element in Size 2N Array 解题报告(Python & C+++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法字典日期题目地址:https://leetcode.com/problems/n-repeated-element-in-size-2n-array/题目描述In a array A of size 2N, there are N+1 unique e...

2018-12-23 15:54:42 1858

原创 【LeetCode】862. Shortest Subarray with Sum at Least K 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法队列日期题目地址:https://leetcode.com/problems/shortest-subarray-with-sum-at-least-k/题目描述Return the length of the shortest, non-empty,...

2018-12-20 10:01:32 1566

原创 【LeetCode】140. Word Break II 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法递归求解日期题目地址:https://leetcode.com/problems/word-break-ii/题目描述Given a non-empty string s and a dictionary wordDict containing a l...

2018-12-19 09:57:10 5301 2

原创 【LeetCode】472. Concatenated Words 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法动态规划日期题目地址:https://leetcode.com/problems/concatenated-words/题目描述Given a list of words (without duplicates), please write a pro...

2018-12-18 11:25:01 1351

原创 【LeetCode】959. Regions Cut By Slashes 由斜杠划分区域(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/regions-cut-by-slashes/description/题目描述In a N x N grid composed of 1 x 1 squares, each 1 ...

2018-12-16 18:00:00 1901

原创 【LeetCode】957. Prison Cells After N Days 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法周期是14日期题目地址:https://leetcode.com/problems/prison-cells-after-n-days/description/题目描述There are 8 prison cells in a row, and eac...

2018-12-16 12:40:39 3728

原创 【LeetCode】958. Check Completeness of a Binary Tree 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法BFSDFS日期题目地址:https://leetcode.com/contest/weekly-contest-115/problems/check-completeness-of-a-binary-tree/题目描述Given a binary t...

2018-12-16 12:34:15 2323

原创 【LeetCode】952. Largest Component Size by Common Factor 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法并查集日期题目地址:https://leetcode.com/problems/largest-component-size-by-common-factor/description/题目描述Given a non-empty array of uni...

2018-12-15 16:32:33 1452

原创 【LeetCode】910. Smallest Range II 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/smallest-range-ii/description/题目描述Given an array A of integers, for each integer A[i] we ...

2018-12-14 09:41:54 1160

原创 【LeetCode】856. Score of Parentheses 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法栈递归计数日期题目地址:https://leetcode.com/problems/score-of-parentheses/description/题目描述Given a balanced parentheses string S, compute ...

2018-12-11 16:03:11 1402

原创 【LeetCode】87. Scramble String 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法递归动态规划日期题目地址:https://leetcode.com/problems/scramble-string/description/题目描述Given a string s1, we may represent it as a binary ...

2018-12-11 09:53:55 1302

原创 【LeetCode】72. Edit Distance 编辑距离(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法记忆化搜索动态规划日期题目地址:https://leetcode.com/problems/edit-distance/description/题目描述Given two words word1 and word2, find the minimum ...

2018-12-10 10:07:47 2104

原创 【LeetCode】954. Array of Doubled Pairs 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/array-of-doubled-pairs/description/题目描述Given an array of integers A with even length, ret...

2018-12-09 12:35:03 1062

原创 【LeetCode】953. Verifying an Alien Dictionary 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/contest/weekly-contest-114/problems/verifying-an-alien-dictionary/题目描述In an alien language, surpri...

2018-12-09 12:11:56 4141

原创 【LeetCode】950. Reveal Cards In Increasing Order 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法模拟日期题目地址:https://leetcode.com/problems/reveal-cards-in-increasing-order/description/题目描述In a deck of cards, every card has a u...

2018-12-02 22:13:13 2154

原创 【LeetCode】951. Flip Equivalent Binary Trees 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法递归日期题目地址:https://leetcode.com/problems/flip-equivalent-binary-trees/description/题目描述For a binary tree T, we can define a flip ...

2018-12-02 22:04:17 2171

原创 【LeetCode】949. Largest Time for Given Digits 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/largest-time-for-given-digits/description/题目描述Given an array of 4 digits, return the larg...

2018-12-02 21:54:14 1556

原创 【LeetCode】188. Best Time to Buy and Sell Stock IV 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv/description/题目描述Say you have an array for which the it...

2018-12-01 10:12:57 3555 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除