Leetcode 94. Binary Tree Inorder Traversal
摘要:https://leetcode.com/problems/binary-tree-inorder-traversal/ Medium https://leetcode.com/problems/binary-tree-inorder-traversal/ Medium https://leetco
阅读全文
posted @
2019-07-15 18:29
浩然119
阅读(215)
推荐(0)
Leetcode 160. Intersection of Two Linked Lists
摘要:https://leetcode.com/problems/intersection-of-two-linked-lists/ Easy Easy Easy Write a program to find the node at which the intersection of two singl
阅读全文
posted @
2019-07-13 13:31
浩然119
阅读(236)
推荐(0)
Leetcode 328. Odd Even Linked List
摘要:Medium Medium Medium Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the no
阅读全文
posted @
2019-07-10 21:19
浩然119
阅读(120)
推荐(0)
Leetcode 2. Add Two Numbers
摘要:https://leetcode.com/problems/add-two-numbers/ Medium Medium Medium You are given two non-empty linked lists representing two non-negative integers. T
阅读全文
posted @
2019-07-08 22:07
浩然119
阅读(117)
推荐(0)
Leetcode 334. Increasing Triplet Subsequence
摘要:https://leetcode.com/problems/increasing-triplet-subsequence/ Medium Medium Medium Given an unsorted array return whether an increasing subsequence of
阅读全文
posted @
2019-07-07 18:33
浩然119
阅读(134)
推荐(0)
Leetcode 73. Set Matrix Zeroes
摘要:https://leetcode.com/problems/set-matrix-zeroes/ Medium https://leetcode.com/problems/set-matrix-zeroes/ Medium Given a m x n matrix, if an element is
阅读全文
posted @
2019-07-03 19:20
浩然119
阅读(137)
推荐(0)
Leetcode 15. 3Sum
摘要:https://leetcode.com/problems/3sum/ Medium Medium Medium Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0
阅读全文
posted @
2019-07-02 19:28
浩然119
阅读(122)
推荐(0)
Leetcode 4. Median of Two Sorted Arrays
摘要:https://leetcode.com/problems/median-of-two-sorted-arrays/ Hard There are two sorted arrays nums1 and nums2 of size m and n respectively. There are tw
阅读全文
posted @
2019-03-06 15:55
浩然119
阅读(130)
推荐(0)
Leetcode 3. Longest Substring Without Repeating Characters
摘要:https://leetcode.com/problems/longest-substring-without-repeating-characters/ Given a string, find the length of the longest substring without repeati
阅读全文
posted @
2019-02-28 18:14
浩然119
阅读(134)
推荐(0)
LeetCode 155. Min Stack
摘要:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack. pop() -- Remov
阅读全文
posted @
2018-04-02 19:19
浩然119
阅读(188)
推荐(0)
LeetCode 17. Letter Combinations of a Phone Number
摘要:https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/ Given a digit string, return all possible letter combinations that th
阅读全文
posted @
2018-03-14 15:22
浩然119
阅读(170)
推荐(0)
LeetCode 139. Word Break
摘要:https://leetcode.com/problems/word-break/description/ Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, deter
阅读全文
posted @
2018-03-10 17:17
浩然119
阅读(171)
推荐(0)
LeetCode 208. Implement Trie (Prefix Tree)
摘要:https://leetcode.com/problems/implement-trie-prefix-tree/description/ Implement a trie with insert, search, and startsWith methods. Note:You may assum
阅读全文
posted @
2018-02-22 18:07
浩然119
阅读(198)
推荐(0)
LeetCode 215. Kth Largest Element in an Array
摘要:https://leetcode.com/problems/kth-largest-element-in-an-array/ Medium Find the kth largest element in an unsorted array. Note that it is the kth large
阅读全文
posted @
2018-02-16 18:11
浩然119
阅读(346)
推荐(0)
LeetCode 235. Lowest Common Ancestor of a Binary Search Tree
摘要:https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/description/ Given a binary search tree (BST), find the lowest common anc
阅读全文
posted @
2018-02-15 06:40
浩然119
阅读(195)
推荐(0)
LeetCode 206. Reverse Linked List
摘要:https://leetcode.com/problems/reverse-linked-list/description/ Reverse a singly linked list. Hint: A linked list can be reversed either iteratively or
阅读全文
posted @
2018-02-14 18:57
浩然119
阅读(316)
推荐(0)
LeetCode 48. Rotate Image
摘要:https://leetcode.com/problems/rotate-image/description/ You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockw
阅读全文
posted @
2018-02-14 09:08
浩然119
阅读(238)
推荐(0)
LeetCode 76. Minimum Window Substring
摘要:https://leetcode.com/problems/minimum-window-substring/description/ Given a string S and a string T, find the minimum window in S which will contain a
阅读全文
posted @
2018-02-13 10:55
浩然119
阅读(165)
推荐(0)
LeetCode 763. Partition Labels
摘要:https://leetcode.com/problems/partition-labels/description/ A string S of lowercase letters is given. We want to partition this string into as many pa
阅读全文
posted @
2018-02-12 11:15
浩然119
阅读(213)
推荐(0)
LeetCode 438. Find All Anagrams in a String
摘要:https://leetcode.com/problems/find-all-anagrams-in-a-string/description/ Given a string s and a non-empty string p, find all the start indices of p's
阅读全文
posted @
2018-02-10 20:14
浩然119
阅读(193)
推荐(0)