### 胖虎LeetCode解题报告

2 已关注
26篇博文
• #### leetCode解题报告5道题(十一)

5道题目分别是：【Subsets】、【Subsets II】、【Unique Paths】、【Unique Paths II】、【Trapping Rain Water 】,由于有一些题目不需要发一整...

2014-05-19 23:16
2240
• #### leetCode解题报告5道题(十)

5道题目分别是：【Largest Rectangle in Histogram】、【Minimum Path Sum】、【Jump Game】、【Jump Game II 】、【Valid Numbe...

2014-05-19 01:03
1990
• #### leetCode解题报告5道题(九)

5道题目分别是：【Combinations】、【Search a 2D Matrix】、【Scramble String 】、【Rotate List 】、【Partition List】,由于有一些...

2014-05-18 09:57
1868
• #### Best Time to Buy and Sell Stock I && II && III

题目1：Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price o...

2014-05-16 00:21
2497
• #### leetCode解题报告5道题(八)

5道题目分别是：【Triangle】、【Pascal's Triangle】、【Pascal's Triangle II 】、【Populating Next Right Pointers in Ea...

2014-05-15 14:44
1386
• #### leetCode解题报告5道题(七)

5道题目分别是：【Interleaving String】、【Validate Binary Search Tree】、【Sqrt(x) 】、【Recover Binary Search Tree 】...

2014-05-14 10:03
1767
• #### leetCode解题报告5道题(六)

5道题目分别是：【Longest Substring Without Repeating Characters】、【Rotate Image】、【Restore IP Addresses】、【ZigZ...

2014-04-29 00:40
2094
• #### leetCode解题报告5道题(五)

5道题目分别是：【Path Sum && Path Sum II】、【Merge Sorted Array】、【Flatten Binary Tree to Linked List】、【Distinc...

2014-04-22 20:49
1532
• #### leetCode解题报告之Binary Tree Level Order Traversal II,I(二叉树层次遍历)

题目： Binary Tree Level Order Traversal II Given a binary tree, return the bottom-up level order tra...

2014-03-28 20:28
14776
• #### leetCode解题报告5道题(四)

5道题目分别是：【Longest Consecutive Sequence】、【Valid Palindrome】、【Binary Tree Maximum Path Sum】、【Reverse Wo...

2014-04-09 11:05
1895
• #### leetCode解题报告5道题(三)

5道题目分别是：【Binary Tree Zigzag Level Order Traversal】、【Convert Sorted Array to Binary Search Tree和Conve...

2014-04-04 23:28
1708
• #### leetCode解题报告5道题(二)

5道题目分别是：【Maximum Depth of Binary Tree】、【Sum Root to Leaf Numbers】、【Unique Binary Search Trees】、【N-Qu...

2014-04-03 22:24
2990
• #### leetCode解题报告之Palindrome Partitioning I,II(DFS,DP)

Palindrome Partitioning I, II DFS 和 DP动态规划问题 首先我们先定义几个变量，并对这几个量做一定的说明！为了方便理解，下面这些为伪码!!! len = s...

2014-03-31 01:02
20429
• #### leetCode解题报告之Clone Graph

题目： Clone an undirected graph. Each node in the graph contains a label and a list of ...

2014-03-27 16:56
2662
• #### leetCode解题报告5道题(一)

5道题目分别是：【Reverse Linked List II】、【Binary Tree Inorder Traversal】、【Merge Two Sorted Lists (关于两个已经排好序的...

2014-03-23 11:32
2899
• #### leetCode解题报告之Gas Station

题目： There are N gas stations along a circular route, where the amount of gas at station i is ga...

2014-03-26 09:54
3104
• #### leetCode解题报告之Candy（简单回溯）

题目： There are N children standing in a line. Each child is assigned a rating value. You are ...

2014-03-26 08:52
2561
• #### leetCode解题报告之构造二叉树(递归)

此博文主要讲述了构造二叉树的两种方法： 1、通过先序和中序构造出二叉树( 来自leetCode OJ上的 题目：Construct Binary Tree from Preorder and Ino...

2014-03-25 19:50
3604
• #### leetCode解题报告之O(n)线性时间求最大子序列和(Maximum Subarray)

详细讲解关于求最大子序列和(Maximum Subarray)的4种解法，并分析它们的时间复杂度！ O（n^3）->>> O(n^2)->>> O(nlogn)->>>O(n)

2014-03-25 12:09
3580
• #### leetCode解题报告之SingleNumberI,II(知识点:位运算)

由于两题是姐妹题，所以放在同一个博文里了！ 题目1： Given an array of integers, every element appears twice except ...

2014-03-23 00:40
2945