### LeetCode题解

2 已关注
56篇博文
• #### Generate Parentheses - LeetCode

Generate Parentheses - LeetCode 题目: Given n pairs of parentheses, write a function to generate all...

2015-04-10 19:43
414
• #### Find Peak Element - LeetCode

Find Peak Element - LeetCode 题目： A peak element is an element that is greater than its neighbo...

2015-04-10 20:17
534
• #### Majority Element-LeetCode

Majority Element-LeetCode 题目： 分析： 代码：

2015-01-03 23:07
566
• #### Balanced Binary Tree-LeetCode

Balanced Binary Tree   -LeetCode 题目： Given a binary tree, determine if it is height-balan...

2015-01-03 23:23
487
• #### Binary Tree Inorder Traversal -LeetCode

Binary Tree Inorder Traversal -LeetCode 题目： Given a binary tree, return the inorder traver...

2015-01-03 23:33
362
• #### Unique Binary Search Trees -LeetCode

Unique Binary Search Trees -LeetCode 题目： Given n, how many structurally unique BST's (binary...

2015-01-03 23:58
441
• #### Same Tree -LeetCode

Same Tree -LeetCode 题目： Given two binary trees, write a function to check if they are equa...

2015-01-04 22:56
397
• #### Count and Say-LeetCode

Count and Say-LeetCode 题目： The count-and-say sequence is the sequence of integers beginning as fol...

2015-01-07 12:22
400
• #### Populating Next Right Pointers in Each Node --LeetCode

Populating Next Right Pointers in Each Node --LeetCode 题目： Given a binary tree struct...

2015-01-29 18:52
413
• #### Roman to Integer - LeetCode

Roman to Integer - LeetCode 题目： Given a roman numeral, convert it to an integer. Input is guar...

2015-01-29 20:42
418
• #### Excel Sheet Column Number-LeetCode

Excel Sheet Column Number-LeetCode 题目： Given a column title as appear in an Excel sheet, retur...

2015-01-31 12:37
358
• #### Remove Duplicates from Sorted List - LeetCode

Remove Duplicates from Sorted List - LeetCode 题目： Given a sorted linked list, delete all dupli...

2015-01-31 15:12
326
• #### Largest Number-LeetCode

Largest Number-LeetCode 题目： Given a list of non negative integers, arrange them such that they...

2015-01-31 17:20
359
• #### Convert Sorted Array to Binary Search Tree - LeetCode

Convert Sorted Array to Binary Search Tree - LeetCode 题目： Given an array where elements are sorted...

2015-02-04 19:14
340
• #### Merge Two Sorted Lists - LeetCode

Merge Two Sorted Lists - LeetCode 题目： Merge two sorted linked lists and return it as a new list. T...

2015-02-04 20:17
343
• #### Plus One - LeetCode

Plus One - LeetCode 题目： Given a non-negative number represented as an array of digits, plus ...

2015-02-05 17:53
384
• #### Add Two Numbers - LeetCode

Add Two Numbers - LeetCode 题目： You are given two linked lists representing two non-negative nu...

2015-02-06 20:23
431
• #### Length of Last Word - LeetCode

Length of Last Word - LeetCode 题目： Given a string s consists of upper/lower-case alphabets and...

2015-02-09 14:39
304
• #### Path Sum - LeetCode

Path Sum - LeetCode 题目： Given a binary tree and a sum, determine if the tree has a root-to-lea...

2015-02-09 16:50
342
• #### Valid Parentheses - LeetCode

Valid Parentheses - LeetCode 题目： Given a string containing just the characters '(', ')', '{', ...

2015-02-11 18:57
332

1310520