![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
LeetCode
文章平均质量分 63
eleven_mie11
这个作者很懒,什么都没留下…
展开
-
LeetCode#332 Reconstruct Itinerary
[Description]:Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who depa原创 2018-01-03 14:16:51 · 146 阅读 · 0 评论 -
LeetCode#647 Palindromic Substrings
[Description]:Given a string, your task is to count how many palindromic substrings in this string.The substrings with different start indexes or end indexes are counted as different substri原创 2018-01-03 16:26:39 · 138 阅读 · 0 评论 -
LeetCode#515 Find Largest Value in Each Tree Row
[Description]:You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9]原创 2018-01-03 16:04:07 · 160 阅读 · 0 评论 -
LeetCode#207 Course Schedule
[Description]:There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, wh原创 2018-01-03 15:56:34 · 131 阅读 · 0 评论 -
LeetCode#394 Decode String
[Description]:Given an encoded string, return it's decoded string.The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k原创 2018-01-03 15:16:27 · 127 阅读 · 0 评论 -
LeetCode#406 Queue Reconstruction by Height
[Description]Suppose you have a random list of people standing in a queue. Each person is described by a pair of integers (h, k), where h is the height of the person and k is the number of p原创 2017-11-01 15:48:14 · 208 阅读 · 0 评论 -
LeetCode#104 Maximum Depth of Binary Tree
[Description]:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.[题解]:很经典的题,找到二原创 2018-01-03 15:13:01 · 165 阅读 · 0 评论 -
LeetCode#53 Maximum Subarray
[Description]:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous su原创 2018-01-03 14:49:03 · 154 阅读 · 0 评论 -
LeetCode#215 Kth Largest Element in an Array
[Description]Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.For example,Given [3,2,1,5,6,4] an原创 2017-09-19 14:34:15 · 280 阅读 · 0 评论 -
LeetCode#169 Majority Element
[Description] Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. You may assume that the array is non-empty and the majorit原创 2017-09-12 14:48:52 · 205 阅读 · 0 评论 -
LeetCode#240 Search a 2D Matrix II
[Description]Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to原创 2017-09-21 14:41:11 · 166 阅读 · 0 评论 -
LeetCode#513 Find Bottom Left Tree Value
[Description]Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1Example 2: Input: 1 / \原创 2017-09-23 16:46:12 · 154 阅读 · 0 评论 -
LeetCode#338 Counting Bits
[Description]:Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and return them as an array.E原创 2018-01-03 13:29:12 · 143 阅读 · 0 评论 -
LeetCode#122 Best Time to Buy and Sell Stock II
[Description]:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as原创 2018-01-03 16:59:27 · 139 阅读 · 0 评论