[LeetCode]Validate Binary Search Tree

Given 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 ...

2015-09-29 11:10:23

阅读数:138

评论数:0

[LeetCode]Restore IP Addresses(!!!!BackTrace)

Restore IP Addresses My Submissions Question Solution Total Accepted: 41299 Total Submissions: 192823 Difficulty: Medium Given a string ...

2015-09-26 22:08:57

阅读数:242

评论数:0

[LeetCode] Largest Rectangle in Histogram

Largest Rectangle in Histogram Given n non-negative integers representing the histogram’s bar height where the width of each bar is 1, find th...

2015-09-01 10:51:00

阅读数:209

评论数:0

[LeetCode] Subsets(!!!!!回溯&&迭代&&位操作)(to be updated)

Subsets Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The...

2015-08-23 22:58:07

阅读数:424

评论数:0

[LeetCode] Combinations

Combinations Given two integers n and k, return all possible combinations of k numbers out of 1 … n. For example, If n = 4 and k = 2, a solut...

2015-08-23 22:27:40

阅读数:179

评论数:0

[LeetCode] Permutation Sequence

Permutation Sequence Total The set [1,2,3,…,n] contains a total of n! unique permutations. By listing and labeling all of the permutations ...

2015-08-20 22:09:22

阅读数:234

评论数:0

[LeetCode]Permutations II(!!!!!DFS递归&&回溯)

Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following...

2015-07-19 15:26:25

阅读数:265

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭