自定义博客皮肤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!

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

原创 【LeetCode】983. 最低票价 Minimum Cost For Tickets(C++ & Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/题目地址:https://leetcode.com/problems/minimum-cost-for-tickets/题目描述:In a country popular for train travel, you have planned some train trav...

2019-01-29 22:43:50 3744

原创 【LeetCode】982. Triples with Bitwise AND Equal To Zero 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/triples-with-bitwise-and-equal-to-zero/题目描述Given an array of integers A, find the number ...

2019-01-27 16:45:34 1078 3

原创 【LeetCode】981. Time Based Key-Value Store 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法字典日期题目地址:https://leetcode.com/problems/time-based-key-value-store/题目描述Create a timebased key-value store class TimeMap, that s...

2019-01-27 16:31:35 3137 5

原创 【LeetCode】984. String Without AAA or BBB 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法字符串构造日期题目地址:https://leetcode.com/problems/string-without-aaa-or-bbb/题目描述Given two integers A and B, return any string S such t...

2019-01-27 16:13:14 1253

原创 【LeetCode】980. Unique Paths III解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法回溯法日期题目地址:https://leetcode.com/problems/unique-paths-iii/题目描述On a 2-dimensional grid, there are 4 types of squares:1 represe...

2019-01-20 17:37:28 1881

原创 【LeetCode】979. Distribute Coins in Binary Tree 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法递归日期题目地址:https://leetcode.com/problems/distribute-coins-in-binary-tree/题目描述Given the root of a binary tree with N nodes, each ...

2019-01-20 17:24:40 2790

原创 【LeetCode】978. Longest Turbulent Subarray 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法虫取法日期题目地址:https://leetcode.com/problems/longest-turbulent-subarray/题目描述A subarray A[i], A[i+1], ..., A[j] of A is said to be t...

2019-01-20 16:56:49 1270

原创 【LeetCode】977. Squares of a Sorted Array 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法排序日期题目地址:https://leetcode.com/problems/squares-of-a-sorted-array/题目描述Given an array of integers A sorted in non-decreasing ord...

2019-01-20 15:48:49 1522

原创 【LeetCode】975. Odd Even Jump 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法动态规划日期题目地址:https://leetcode.com/problems/odd-even-jump/题目描述You are given an integer array A. From some starting index, you ca...

2019-01-13 22:10:12 2961

原创 【LeetCode】974. Subarray Sums Divisible by K 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法动态规划前缀和求余日期题目地址:https://leetcode.com/problems/subarray-sums-divisible-by-k/题目描述Given an array A of integers, return the number...

2019-01-13 21:31:12 3313

原创 【LeetCode】976. Largest Perimeter Triangle 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法排序日期题目地址:https://leetcode.com/problems/largest-perimeter-triangle/题目描述Given an array A of positive lengths, return the largest...

2019-01-13 17:38:21 1787

原创 【LeetCode】973. K Closest Points to Origin 解题报告(Python)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/k-closest-points-to-origin/题目描述We have a list of points on the plane. Find the K closest...

2019-01-13 17:06:35 6026 1

原创 【LeetCode】316. Remove Duplicate Letters 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/remove-duplicate-letters/题目描述Given a string which contains only lowercase letters, remove...

2019-01-08 10:20:57 2844

原创 【LeetCode】968. Binary Tree Cameras 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法日期题目地址:https://leetcode.com/problems/binary-tree-cameras/题目描述Given a binary tree, we install cameras on the nodes of the tree....

2019-01-07 10:12:47 1935

原创 【LeetCode】971. Flip Binary Tree To Match Preorder Traversal 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法前序遍历日期题目地址:https://leetcode.com/problems/flip-binary-tree-to-match-preorder-traversal/题目描述Given a binary tree with N nodes, ea...

2019-01-06 17:52:42 1574 2

原创 【LeetCode】969. 煎饼排序 Pancake Sorting

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法模拟法日期题目地址:https://leetcode.com/problems/pancake-sorting/题目描述Given an array A, we can perform a pancake flip: We choose some po...

2019-01-06 17:18:21 2665

原创 【LeetCode】970. Powerful Integers 解题报告(Python & C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法暴力搜索日期题目地址:https://leetcode.com/problems/powerful-integers/题目描述Given two non-negative integers x and y, an integer is powerful...

2019-01-06 16:21:24 1126

原创 【LeetCode】829. Consecutive Numbers Sum 解题报告(C++)

作者: 负雪明烛id: fuxuemingzhu个人博客: http://fuxuemingzhu.cn/目录题目描述题目大意解题方法数学方法日期题目地址:https://leetcode.com/problems/consecutive-numbers-sum/题目描述Given a positive integer N, how many ways can we write it...

2019-01-05 10:42:20 887

空空如也

空空如也

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

TA关注的人

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