码迷,mamicode.com
首页 >  
搜索关键字:the unique mst    ( 5979个结果
leetcode第38题--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 ...
分类:其他好文   时间:2014-10-25 22:50:47    阅读次数:267
3Sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-10-25 21:24:42    阅读次数:256
leetcode-minimum path sum
属于中规中矩的dp。和unique paths类似。一次ac。但是可以通过滚动数组来节省存储空间。 1 #include 2 #include 3 #include 4 using namespace std; 5 6 class Solution { 7 public: 8 int...
分类:其他好文   时间:2014-10-25 21:19:04    阅读次数:244
leetcode - Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution. A sudoku...
分类:其他好文   时间:2014-10-25 17:27:41    阅读次数:232
leetcode - 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. Each number in C may only be used once in the combina...
分类:其他好文   时间:2014-10-25 14:34:02    阅读次数:163
leetcode - Combination Sum
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...
分类:其他好文   时间:2014-10-25 11:56:08    阅读次数:206
unique_ptr简谈
看到文章里的同学留言说到unique_ptr,这两天看了一下cplusplus提供的reference才知道这个东西是c++11的新特性,对c++11的新特性不是很了解,花时间了解了下unique_ptr,之前有写过auto_ptr的分析,这里就和auto_ptr对比下来看。unique_ptr.....
分类:其他好文   时间:2014-10-25 10:28:05    阅读次数:1948
SQL Server Primary key 、clustered index 、 unique
primary key: 1、主键不可以有空值。 2、不可以有重复行。unique : 1、可以有空行。 2、不可以有重复行。clustered index: 1、可以有重复行。 2、可以有空行。 3、如果指定的列不unique 它会再加一个标志列以使索引变得唯一。
分类:数据库   时间:2014-10-24 22:10:24    阅读次数:260
[Leetcode] Unique Paths
A robot is located at the top-left corner of amxngrid (marked 'Start' in the diagram below).The robot can only move either down or right at any point ...
分类:其他好文   时间:2014-10-24 18:08:30    阅读次数:125
[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 i...
分类:其他好文   时间:2014-10-24 18:07:56    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!