码迷,mamicode.com
首页 >  
搜索关键字:distinct    ( 3361个结果
【LeetCode】Subsets (2 solutions)
SubsetsGiven a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must...
分类:其他好文   时间:2014-12-05 12:23:05    阅读次数:145
MongoDB聚合管道
通过上一篇文章中,认识了MongoDB中四个聚合操作,提供基本功能的count、distinct和group,还有可以提供强大功能的mapReduce。在MongoDB的2.2版本以后,聚合框架中多了一个新的成员,聚合管道,数据进入管道后就会经过一级级的处理,直到输出。对于数据量不是特别大,逻辑也不...
分类:数据库   时间:2014-12-04 23:12:35    阅读次数:466
Oracle锁基本
锁:是一种资源,是一小块的内存。是为了控制并发中的串行操作。 如果从微观上讲是串行。 锁的类型: DML 锁 DDL 锁 数据字典锁 内部锁或Latch(mutex) SQL> select distinct type from v$lock;TY--KDRDAER...
分类:数据库   时间:2014-12-04 22:58:57    阅读次数:341
泛型集合的静态扩展方法
C# 中的泛型集合提供了很多基于 Enumerable 的静态扩展方法,例如 ?Find, ?OrderBy , Average ,Distinct 等,在使用基础数据类型的集合时,可以直接调用这些方法,但如果是自定义类型就应当根据扩展方法所要求...
分类:其他好文   时间:2014-12-04 08:53:09    阅读次数:331
Leetcode: Climbing Stairs
You are climbing a stair case. It takesnsteps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb...
分类:其他好文   时间:2014-12-04 00:54:19    阅读次数:127
MongoDB中的聚合操作
根据MongoDB的文档描述,在MongoDB的聚合操作中,有以下五个聚合命令。其中,count、distinct和group会提供很基本的功能,至于其他的高级聚合功能(sum、average、max、min),就需要通过mapReduce来实现了。在MongoDB2.2版本以后,引入了新的聚合框架...
分类:数据库   时间:2014-12-03 23:02:22    阅读次数:429
LeetCode N-Queens
又是一个八皇后问题: Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' placement, where 'Q' and '.' both ...
分类:其他好文   时间:2014-12-03 21:17:08    阅读次数:175
Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2014-12-03 21:16:44    阅读次数:172
oracle 判断某一个存储是否存储
用如下sql语句即可: SELECT distinct name FROM USER_SOURCE WHERE TYPE = 'PROCEDURE' and name = 'CONTINUEHISORDERPROCESS';...
分类:数据库   时间:2014-12-03 10:29:36    阅读次数:217
SPOJ 12943. Counting, dp ,巧妙
Given integers N and M, output in how many ways you can take N distinct positive integers such that sum of those integers is M. Since result can be huge, output it modulo 1000000007 (10^9 + 7) N ...
分类:其他好文   时间:2014-12-03 00:24:54    阅读次数:230
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!