码迷,mamicode.com
首页 >  
搜索关键字:two sum    ( 31846个结果
motorola scanner datasheet相关解释 One Discrete Length, Two Discrete Lengths,Length Within Range
以下通过Simple Serial Interface进行设置,非扫描官方datasheet的设置条码....
分类:其他好文   时间:2014-06-03 05:03:16    阅读次数:219
HDU基本最*子序列集锦1
最大连续子序列(HDU1003,1231) 最大递增子序列和,sum[i]=max(sum[j])+a[i],j 最长公共子序列,LCS经典算法(HDU1159)。 题解: 实际上,我没看出hdu1003和1231的本质差别,形式上的差别就是记载的东西不一样,一个是记载下标,一个是记载元素。基本就是那么回事吧。很多算法书在讨论时效都会拿这个例子来说明,让大家看到算法的力量,从一个弱渣算法到...
分类:其他好文   时间:2014-06-03 04:19:10    阅读次数:279
ORACLE 按表字段值的不同统计数量
select p.id comperitorId,p.compcorp competitorName, sum(case when c.kindname = 'ATM' then c.num else 0 end) atm, sum(case when c.kindname = 'CRS' then c.num else 0 end) crs, sum(case when c.kindname...
分类:数据库   时间:2014-06-03 03:12:09    阅读次数:211
LeetCode: Partition List [086]
【题目】 Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x. You should preserve the original relative order of the nodes in each of the two partitions. For example, Given 1->4->3-...
分类:其他好文   时间:2014-06-03 00:02:29    阅读次数:270
每日算法之二十二:Swap Nodes in Pairs
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your algorithm should use only constant space....
分类:其他好文   时间:2014-06-01 10:41:23    阅读次数:242
LeetCode: Gray Code [089]
【题目】 The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0. ...
分类:其他好文   时间:2014-06-01 09:16:29    阅读次数:242
projecteuler---->problem=10----Summation of primes
title: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 翻译: 10以下的质数的和为2 + 3 + 5 + 7 = 17。 请求出200,0000以下所有质数的和。 import math,time d...
分类:其他好文   时间:2014-06-01 09:12:31    阅读次数:239
jquery dataTable的学习
分页bPaginite:true;是否启用分页功能sPaginationType:two_button 或者full_numbers 分页风格sFirst:告诉他第一页怎么写sLast:告诉他最后一页怎么写sNext:告诉他下一页怎么写sPrevious:告诉他上一页怎么写语言"sInfo":"共_...
分类:Web程序   时间:2014-05-31 20:58:59    阅读次数:332
leetCode解题报告5道题(九)
题目一:CombinationsGiven two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4],....
分类:其他好文   时间:2014-05-31 20:01:02    阅读次数:455
hdu-1255-覆盖的面积-线段树
记录3个变量。 sum[i]:当前区间被覆盖2次及两次以上的面积。 num[i]:当前区间被覆盖1次及一次以上的面积。 cover[i]:覆盖的lazy标记。 对于每一个区间. 更新操作如下: void push_up(int_now) { if(cover[rt]==0) { num[rt]=num[rt<<1]+num[rt<<1|1]; ...
分类:其他好文   时间:2014-05-31 17:58:57    阅读次数:296
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!