Leetcode 297. Serialize and Deserialize Binary Tree
摘要:https://leetcode.com/problems/serialize-and-deserialize-binary-tree/ Serialization is the process of converting a data structure or object into a sequ
阅读全文
posted @
2019-09-28 09:51
浩然119
阅读(263)
推荐(0)
Leetcode 300. Longest Increasing Subsequence
摘要:https://leetcode.com/problems/longest-increasing-subsequence/ Medium Medium Medium Given an unsorted array of integers, find the length of longest inc
阅读全文
posted @
2019-09-17 19:39
浩然119
阅读(212)
推荐(0)
Leetcode 322. Coin Change
摘要:https://leetcode.com/problems/coin-change/ Medium Medium Medium You are given coins of different denominations and a total amount of money amount. Wri
阅读全文
posted @
2019-09-17 14:02
浩然119
阅读(180)
推荐(0)
Leetcode 62. Unique Paths
摘要:https://leetcode.com/problems/unique-paths/ Medium Medium Medium A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diag
阅读全文
posted @
2019-09-14 18:07
浩然119
阅读(119)
推荐(0)
LeetCode 55. Jump Game
摘要:https://leetcode.com/problems/jump-game/ Medium Medium Medium Given an array of non-negative integers, you are initially positioned at the first index
阅读全文
posted @
2019-09-09 20:32
浩然119
阅读(125)
推荐(0)
Leetcode 240. Search a 2D Matrix II
摘要:https://leetcode.com/problems/search-a-2d-matrix-ii/ Medium Medium Medium Write an efficient algorithm that searches for a value in an m x n matrix. T
阅读全文
posted @
2019-09-03 17:44
浩然119
阅读(170)
推荐(0)
Leetcode 33. Search in Rotated Sorted Array
摘要:https://leetcode.com/problems/search-in-rotated-sorted-array/ Medium Medium Medium Suppose an array sorted in ascending order is rotated at some pivot
阅读全文
posted @
2019-09-02 20:22
浩然119
阅读(166)
推荐(0)
Leetcode 56. Merge Intervals
摘要:https://leetcode.com/problems/merge-intervals/ Medium Given a collection of intervals, merge all overlapping intervals. Example 1: Input: [[1,3],[2,6]
阅读全文
posted @
2019-09-02 18:07
浩然119
阅读(137)
推荐(0)
Leetcode 34. Find First and Last Position of Element in Sorted Array
摘要:https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ Medium Medium Medium Given an array of integers nums sorted in
阅读全文
posted @
2019-08-27 21:58
浩然119
阅读(121)
推荐(0)
Leetcode 162. Find Peak Element
摘要:https://leetcode.com/problems/find-peak-element/ Medium Medium Medium A peak element is an element that is greater than its neighbors. Given an input
阅读全文
posted @
2019-08-21 20:03
浩然119
阅读(127)
推荐(0)
Leetcode 75. Sort Colors
摘要:https://leetcode.com/problems/sort-colors/ Medium Medium Medium Given an array with n objects colored red, white or blue, sort them in-place so that o
阅读全文
posted @
2019-08-19 18:12
浩然119
阅读(161)
推荐(0)
Leetcode 79. Word Search
摘要:https://leetcode.com/problems/word-search/ Medium Medium Medium Given a 2D board and a word, find if the word exists in the grid. The word can be cons
阅读全文
posted @
2019-08-13 21:57
浩然119
阅读(169)
推荐(0)
Leetcode 78. Subsets
摘要:https://leetcode.com/problems/subsets/ Medium Medium Medium Given a set of distinct integers, nums, return all possible subsets (the power set). Note:
阅读全文
posted @
2019-08-12 22:32
浩然119
阅读(178)
推荐(0)
Leetcode 46. Permutations
摘要:https://leetcode.com/problems/permutations/ Medium Medium Medium Given a collection of distinct integers, return all possible permutations. Example: I
阅读全文
posted @
2019-08-04 21:10
浩然119
阅读(167)
推荐(0)
Leetcode 22. Generate Parentheses
摘要:https://leetcode.com/problems/generate-parentheses/ Medium Medium Medium Given n pairs of parentheses, write a function to generate all combinations o
阅读全文
posted @
2019-08-04 18:35
浩然119
阅读(121)
推荐(0)
Leetcode 200. Number of Islands
摘要:https://leetcode.com/problems/number-of-islands/ Medium Medium Medium Given a 2d grid map of '1's (land) and '0's (water), count the number of islands
阅读全文
posted @
2019-07-30 17:16
浩然119
阅读(115)
推荐(0)
Leetcode 230. Kth Smallest Element in a BST
摘要:https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Medium https://leetcode.com/problems/kth-smallest-element-in-a-bst/ Medium https://leetco
阅读全文
posted @
2019-07-29 20:07
浩然119
阅读(188)
推荐(0)
Leetcode 116. Populating Next Right Pointers in Each Node
摘要:https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ Medium Medium Medium You are given a perfect binary tree where all leaves a
阅读全文
posted @
2019-07-22 17:49
浩然119
阅读(192)
推荐(0)
Leetcode 105. Construct Binary Tree from Preorder and Inorder Traversal
摘要:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ Medium Medium Medium Given preorder and inorder traversal of
阅读全文
posted @
2019-07-17 20:26
浩然119
阅读(118)
推荐(0)
Leetcode 103. Binary Tree Zigzag Level Order Traversal
摘要:https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/ Medium Medium Medium Given a binary tree, return the zigzag level order traver
阅读全文
posted @
2019-07-15 19:43
浩然119
阅读(192)
推荐(0)