码迷,mamicode.com
首页 >  
搜索关键字:the unique mst    ( 5979个结果
Unique Paths II (dp题)
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:其他好文   时间:2015-01-16 23:38:32    阅读次数:178
Combination Sum II -- leetcode
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combina...
分类:其他好文   时间:2015-01-16 16:47:18    阅读次数:152
(次小生成树) poj 1679
The Unique MSTTime Limit:1000MSMemory Limit:10000KTotal Submissions:21358Accepted:7560DescriptionGiven a connected undirected graph, tell if its minim...
分类:其他好文   时间:2015-01-16 16:18:13    阅读次数:172
LeetCode-Unique Paths
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:其他好文   时间:2015-01-15 23:56:23    阅读次数:294
LeetCode-Unique Paths II
Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would there be? An obstacle and empty space is marked as 1 and 0 respectively in the ...
分类:其他好文   时间:2015-01-15 23:54:55    阅读次数:206
[C++]LeetCode: 99 Longest Palindromic Substring (最长回文子串)
题目:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 思路:题目要求的s的一个最长回...
分类:编程语言   时间:2015-01-15 23:54:08    阅读次数:207
Combination Sum -- leetcode
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited numb...
分类:其他好文   时间:2015-01-15 18:17:48    阅读次数:186
[Leetcode]Unique Binary Search Trees
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's 1 .....
分类:其他好文   时间:2015-01-14 22:37:54    阅读次数:241
LeetCode: Permutation Sequence 解题报告
PermutationSequence https://oj.leetcode.com/problems/permutation-sequence/The set [1,2,3,…,n] contains a total of n! unique permutations.By listing a....
分类:其他好文   时间:2015-01-14 19:50:23    阅读次数:136
[C++]LeetCode: 92 Unique Binary Search Trees II
题目: Given 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 BST's shown below. 1 ...
分类:编程语言   时间:2015-01-14 16:58:27    阅读次数:222
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!