### LeetCode刷题笔记

2 已关注
71篇博文
• #### 128. Longest Consecutive Sequence

Given an unsorted array of integers, find the length of the longest consecutive elements sequence. F...

2017-06-02 09:09
168
• #### 27. Remove Element

Given an array and a value, remove all instances of that value in place and return the new length. D...

2017-06-14 23:26
131
• #### Leetcode 98. Validate Binary Search Tree

Leetcode 98. Validate Binary Search Tree Given a binary tree, determine if it is a valid bi...

2017-09-04 09:16
418
• #### Leetcode 67. Add Binary

Leetcode 67. Add Binary ———————– Given two binary strings, return their sum (also a binary ...

2017-08-30 10:34
157
• #### Leetcode 523.Continuous Subarray Sum

Leetcode 523.Continuous Subarray Sum Given a list of non-negative numbers and a target inte...

2017-09-01 10:26
325
• #### Leetcode 53. Maximum Subarray

Leetcode 53. Maximum Subarray Find the contiguous subarray within an array (containing at l...

2017-09-01 13:38
301
• #### Leetcode 653. Two Sum IV - Input is a BST

Leetcode 653. Two Sum IV - Input is a BST —————————————– Given a Binary Search Tree and a ta...

2017-08-30 09:38
1058
• #### Leetcode 415. Add Strings

Leetcode 415. Add Strings Given two non-negative integers num1 and num2 represented as stri...

2017-08-30 10:19
321
• #### 1、Two Sum

Given an array of integers, return indices of the two numbers such that they add up to a specific ta...

2017-08-28 15:14
747
• #### LeetCode 236. Lowest Common Ancestor of a Binary Tree

LeetCode 236. Lowest Common Ancestor of a Binary Tree Given a binary tree, find the lowest ...

2017-08-28 16:43
591
• #### LeetCode 235. Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree Given a binary search tree (BST), find the l...

2017-08-28 16:51
432
• #### 538. Convert BST to Greater Tree

Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original B...

2017-07-18 15:12
242
• #### 171. Excel Sheet Column Number

Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, retur...

2017-07-18 23:22
315
• #### 263. Ugly Number

Write a program to check whether a given number is an ugly number. Ugly numbers are pos...

2017-07-19 23:30
161
• #### 79. Word Search

Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from l...

2017-07-13 12:10
137
• #### 530. Minimum Absolute Difference in BST

Given a binary search tree with non-negative values, find the minimum absolute difference between ...

2017-07-13 14:10
141
• #### 637. Average of Levels in Binary Tree

Given a non-empty binary tree, return the average value of the nodes on each level in the form of an...

2017-07-17 21:17
952
• #### 599. Minimum Index Sum of Two Lists

599. Minimum Index Sum of Two Lists Suppose Andy and Doris want to choose a restaurant...

2017-07-06 17:06
381
• #### 蛇形矩阵

题目描述 蛇形矩阵是由1开始的自然数依次排列成的一个矩阵上三角形。 样例输入 5 样例输出 1 3 6 10 15 2 5 9 14 4 8 13...

2017-07-01 20:56
241
• #### Leetcode 606. Construct String from Binary Tree

Leetcode 606. Construct String from Binary Tree ———————————————– You need to construct a str...

2017-07-04 13:12
890