码迷,mamicode.com
首页 >  
搜索关键字:the unique mst    ( 5979个结果
[Leetcode] 4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-11-01 06:12:04    阅读次数:311
BZOJ1977 [BeiJing2010组队]次小生成树 Tree
恩,归类上来讲的话。。。是一道非常好的noip题。。。只不过嘛、、、(此处省略100字)然后将如何做:首先Kruskal求出最小生成树。我们其实可以发现严格的次小生成树不可能在MST上改两条边 只能改一条边。那么如何改呢?每次在MST中加入一条非树边,即不在MST的边,那么会形成一个环,只要找到换....
分类:其他好文   时间:2014-10-31 23:25:51    阅读次数:350
unique() 去重函数
unique()函数是一个去重函数,STL中unique的函数 unique的功能是去除相邻的重复元素(只保留一个),还有一个容易忽视的特性是它并不真正把重复的元素删除。他是c++中的函数,所以头文件要加#include,具体用法如下: int num[100]; unique(num,mun+n)...
分类:其他好文   时间:2014-10-31 21:55:58    阅读次数:198
【LeetCode】4Sum 解题报告
【题目】 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2014-10-31 12:02:18    阅读次数:261
网站专业术语和指标--翻译解释
PV(访问量):即Page View, 即页面浏览量或点击量,用户每次刷新即被计算一次。 UV(独立访客):即Unique Visitor,访问您网站的一台电脑客户端为一个访客。00:00-24:00内相同的客户端只被计算一次。 IP(独立IP):指独立IP数。00:00-24:00内相同IP地址之...
分类:Web程序   时间:2014-10-30 18:56:27    阅读次数:259
oracle约束总结(not null/unique/primary key/foreign key/check)
约束(constraint):对创建的表的列属性、字段进行的限制。诸如:not null/unique/primary key/foreign key/check 作用范围:         ①列级约束只能作用在一个列上         ②表级约束可以作用在多个列上(当然表级约束也可以作用在一个列上) 定义方式:列约束必须跟在列的定义后面,表约束不与列一起,而是单独定义。 — —...
分类:数据库   时间:2014-10-29 00:12:18    阅读次数:467
[Z]mysql中key 、primary key 、unique key 与index区别
一、key与primary key区别CREATE TABLE wh_logrecord (logrecord_id int(11) NOT NULL auto_increment,user_name varchar(100) default NULL,operation_time datetime...
分类:数据库   时间:2014-10-28 17:05:04    阅读次数:251
SQL Server 全文索引
create table Document(ID int not null,Name nvarchar(255) not null,Body nvarchar(max) not null);gocreate unique index uq_ix_for_Document --#这里一定要加一个not...
分类:数据库   时间:2014-10-26 21:01:06    阅读次数:177
【LeetCode】Longest Palindromic Substring 解题报告
DP、KMP什么的都太高大上了,自己想了个朴素的遍历方法。 【题目】 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 palin...
分类:其他好文   时间:2014-10-26 15:37:32    阅读次数:249
leetcode第39题--Combination Sum II
题目:Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each numb...
分类:其他好文   时间:2014-10-26 06:43:06    阅读次数:171
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!