- 博客(30)
- 资源 (29)
- 收藏
- 关注
原创 LeetCode --- 110. Balanced Binary Tree
题目链接:Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees
2015-04-23 10:19:17 1002
原创 LeetCode --- 109. Convert Sorted List to Binary Search Tree
题目链接:Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.这道题的要求是将有序链表转化成高度平衡的二叉搜索树(BST)。1. 利
2015-04-17 16:48:22 2127
原创 LeetCode --- 108. Convert Sorted Array to Binary Search Tree
题目链接:Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.这道题的要求是将有序数组转化成高度平衡的二叉搜索树(BST)。由于数组有序,因此相当于二叉搜索树
2015-04-17 16:47:29 979
原创 LeetCode --- 107. Binary Tree Level Order Traversal II
题目链接:Binary Tree Level Order Traversal IIGiven a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exam
2015-04-17 16:46:33 2758
原创 LeetCode --- 106. Construct Binary Tree from Inorder and Postorder Traversal
题目链接:Construct Binary Tree from Inorder and Postorder TraversalGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in th
2015-04-17 16:44:25 774
原创 LeetCode --- 105. Construct Binary Tree from Preorder and Inorder Traversal
题目链接:Construct Binary Tree from Preorder and Inorder TraversalGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the
2015-04-16 09:13:20 854
原创 LeetCode --- 104. Maximum Depth of Binary Tree
题目链接:Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.这道题
2015-04-16 09:12:17 1081
原创 LeetCode --- 103. Binary Tree Zigzag Level Order Traversal
题目链接:Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and a
2015-04-16 09:11:31 979
原创 LeetCode --- 102. Binary Tree Level Order Traversal
题目链接:Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree {3,9,20,#
2015-04-16 08:57:30 949
原创 LeetCode --- 101. Symmetric Tree
题目链接:Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3
2015-04-16 08:55:14 896
原创 LeetCode --- 100. Same Tree
题目链接:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
2015-04-14 19:54:07 930
原创 LeetCode --- 99. Recover Binary Search Tree
题目链接:Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is pretty stra
2015-04-14 19:52:24 771
原创 LeetCode --- 98. Validate Binary Search Tree
题目链接:Validate Binary Search TreeGiven a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only nodes with
2015-04-14 19:51:33 814
原创 LeetCode --- 97. Interleaving String
题目链接:Interleaving StringGiven s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc",s2 = "dbbca",When s3 = "aadbbcbcac", return true.When
2015-04-14 19:50:56 879
原创 LeetCode --- 96. Unique Binary Search Trees
题目链接:Unique Binary Search TreesGiven n, how many structurally unique BST's (binary search trees) that store values 1...n?For example,Given n = 3, there are a total of 5 unique BST's. 1
2015-04-14 19:49:55 842
原创 LeetCode --- 95. Unique Binary Search Trees II
题目链接:Unique Binary Search Trees IIGiven n, generate all structurally unique BST's (binary search trees) that store values 1...n.For example,Given n = 3, your program should return all 5 unique B
2015-04-09 10:53:49 1017
原创 LeetCode --- 94. Binary Tree Inorder Traversal
题目链接:Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3 return
2015-04-09 10:52:13 760
原创 LeetCode --- 93. Restore IP Addresses
题目链接:Restore IP AddressesGiven a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135", "25
2015-04-09 10:51:20 1345
原创 LeetCode --- 92. Reverse Linked List II
题目链接:Reverse Linked List IIReverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->2->5->NULL.Note:
2015-04-09 10:50:21 645
原创 LeetCode --- 91. Decode Ways
题目链接:Decode WaysA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1 'B' -> 2 ... 'Z' -> 26 Given an encoded message containing digits,
2015-04-09 10:49:48 657
原创 LeetCode --- 90. Subsets II
题目链接:Subsets IIGiven a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not
2015-04-07 21:57:42 671
原创 LeetCode --- 89. Gray Code
题目链接:Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print th
2015-04-07 21:55:12 3488
原创 LeetCode --- 88. Merge Sorted Array
题目链接:Merge Sorted ArrayGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal to m + n) to hold ad
2015-04-07 21:53:14 624
原创 LeetCode --- 87. Scramble String
题目链接:Scramble StringGiven a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation of s1 = "great":
2015-04-07 21:52:53 2412
原创 LeetCode --- 86. Partition List
题目链接:Partition ListGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of t
2015-04-07 21:50:51 642
原创 LeetCode --- 85. Maximal Rectangle
题目链接:Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.这道题的要求是在0-1矩阵中找出面积最大的全1矩阵。1. 基于Largest Rectangle in H
2015-04-03 17:09:12 3401
原创 LeetCode --- 84. Largest Rectangle in Histogram
题目链接:Largest Rectangle in HistogramGiven n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
2015-04-03 17:07:41 3068
原创 LeetCode --- 83. Remove Duplicates from Sorted List
题目链接:Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, r
2015-04-03 17:06:50 1143
原创 LeetCode --- 82. Remove Duplicates from Sorted List II
题目链接:Remove Duplicates from Sorted List IIGiven a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.For example,Given 1->2-
2015-04-03 17:05:11 820
原创 LeetCode --- 81. Search in Rotated Sorted Array II
题目链接:Search in Rotated Sorted Array IIFollow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function to
2015-04-03 17:03:46 1191
Codeblocks 12.11 汉化
2013-12-21
2013中国大数据技术大会PPT——Big Data in Cloud
2013-12-13
2013中国大数据技术大会PPT——中国移劢大数据应用实践
2013-12-12
2013中国大数据技术大会PPT——腾讯大规模Hadoop集群实践
2013-12-12
2013中国大数据技术大会PPT——阿里搜索流计算技术
2013-12-12
2013中国大数据技术大会PPT——阿里大数据应用平台
2013-12-12
2013中国大数据技术大会PPT
2013-12-12
2013中国大数据技术大会PPT——360超大规模HBASE集群的改进
2013-12-12
VMsvga2 v1.2.3
2011-11-20
J2EE_Tutorial_中文版
2011-07-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人