码迷,mamicode.com
首页 >  
搜索关键字:unique paths    ( 5916个结果
UVA 116 Unidirectional TSP(DP)
Background Problems that require minimum paths through some domain appear in many different areas of computer science. For example, one of the constraints in VLSI routing problems is minimizing wire ...
分类:其他好文   时间:2014-08-18 00:20:23    阅读次数:331
Unique Binary Search Trees
Given 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...
分类:其他好文   时间:2014-08-18 00:03:13    阅读次数:189
链表的特有算法操作
10.42 使用list的算法实现排序和删除重复元素。#include#include#include#includeusing namespace std;void elimDup(list &words){ words.sort(); words.unique();}bool isS...
分类:其他好文   时间:2014-08-17 22:39:52    阅读次数:269
Combination Sum II
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....
分类:其他好文   时间:2014-08-17 17:03:22    阅读次数:184
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?...
分类:其他好文   时间:2014-08-17 15:39:42    阅读次数:221
《STL源码剖析》---stl_multimap.h阅读笔记
multimap和map的关系和multiset和set关系一样,multimap允许有重复的键值,它在使用底层数据结构红黑树用,插入操作用的是insert_equal,而不是insert_unique。...
分类:其他好文   时间:2014-08-17 11:46:12    阅读次数:262
Tree Operations 打印出有向图中的环
题目: You are given a binary tree with unique integer values on each node. However, the child pointers on each node may point to any other node in the tree including itself, introducing cycles into the...
分类:其他好文   时间:2014-08-17 09:11:11    阅读次数:301
打开/查找xcode6的沙盒地目录
用以下代码打开沙盒目录 NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);打印paths得到沙盒目录如下/Users/ocq/Library/Develo....
分类:其他好文   时间:2014-08-17 01:02:51    阅读次数:270
Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum ...
分类:其他好文   时间:2014-08-16 22:24:21    阅读次数:212
Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2014-08-16 17:03:50    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!