码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
javascript数据类型(上)
Javascript数据类型有6种:数值型数据类型(Number);字符串(String);布尔型数据(Boolean);对象(Object);空(Null);未定义(Undefined)。 (一)、Number var a = 12;alert(a);弹出a的值是12。var a = 12; .....
分类:编程语言   时间:2015-03-17 00:30:41    阅读次数:164
POJ 2104 K-th Number 静态主席树(裸
题目链接:点击打开链接 题意: 给定n长的序列,q个询问 下面n个数字给出序列 每个询问[l, r] k ,输出该区间中第k大的数 先建一个n个节点的空树,然后每次从后往前新建一棵树,依附原来的空树建。询问就是在树上二分。 #include #include #include #include #include #include using namespace st...
分类:其他好文   时间:2015-03-16 23:14:28    阅读次数:197
[LeetCode] Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 0000000000000...
分类:其他好文   时间:2015-03-16 23:09:57    阅读次数:195
[Leetcode] 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 number ...
分类:其他好文   时间:2015-03-16 23:03:56    阅读次数:218
Leetcode题1
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-03-16 22:49:35    阅读次数:133
利用反射拨号
private void dial(String number) {Class c = TelephonyManager.class;Method getITelephonyMethod = null;try {getITelephonyMethod = c.getDeclaredMethod("g...
分类:其他好文   时间:2015-03-16 22:38:29    阅读次数:146
Apache的Multi-Porcessiong Modules多路处理模块
查看apache工作模式的办法: `apache2ctl -V` Server version: Apache/2.4.7 (Ubuntu) Server built: Apr 3 2014 12:20:28 Server‘s Module Magic Number: 20120211:27 Server loaded: APR 1.5.1-dev, APR-UTIL 1...
分类:Web程序   时间:2015-03-16 21:27:53    阅读次数:237
深搜解Riding the Fences
Riding the Fences Farmer John owns a large number of fences that must be repairedannually. He traverses the fences by riding a horse along each andevery one of them (and nowhere else) and fixing th...
分类:其他好文   时间:2015-03-16 21:27:15    阅读次数:148
为什么基于TCP的应用需要心跳包(TCP keep-alive原理分析)
TCP keep-alive的三个参数用man命令,可以查看linux的tcp的参数:man 7 tcp其中keep-alive相关的参数有三个: tcp_keepalive_intvl (integer; default: 75; since Linux 2.4) The number of seconds between TCP keep-alive pr...
分类:其他好文   时间:2015-03-16 19:19:08    阅读次数:144
我要找个数学好的男朋友
一个整数数列,除其中一个数以外,其他数都出现3次;试找出这个数 -Single Number II.
分类:其他好文   时间:2015-03-16 16:20:42    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!