码迷,mamicode.com
首页 >  
搜索关键字:comare version number    ( 48018个结果)
poj1002 487-3279
DescriptionBusinesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or p...
分类:其他好文   时间:2014-08-22 00:19:05    阅读次数:195
非数值(Not a Number)NaN的解释
它是一个特殊的数值。它用于表示一个本来要返回数值的操作数未返回数值的情况。在ECMAScript中,任何数值除以0会返回NaN,而不会导致错误,不会停止代码的执行,因此不会影响其他代码的执行。NaN本身两个不同寻常的特点:1.任何涉及NaN的操作都会返回NaN,这个特点在多步计算中有可能导致问题。2...
分类:其他好文   时间:2014-08-22 00:12:55    阅读次数:304
Swift 函数新特性
特性一:函数可以穿出不固定的同一种类型的参数(参数的个数不固定)example:“func sumOf(numbers: Int...) -> Int { var sum = 0 for number in numbers { sum += number } r...
分类:编程语言   时间:2014-08-22 00:06:35    阅读次数:301
Hdu1394Minimum Inversion Number线段树
这个网上一搜一大堆,就是先求一个,其余的for一遍搞出来。#include#include#define max 5555int sum[max * 4];int min(int a, int b){ if (a>b) return b; else return a;}void fu...
分类:其他好文   时间:2014-08-22 00:04:25    阅读次数:264
全国三级城市联动 js版
/** 全国三级城市联动 js版* author: mrasong* E-mail: mrasong#163.com* version: 1.0.2* data: tencent**/function Dsy(){ this.Items = {};}Dsy.prototype.add = fu...
分类:Web程序   时间:2014-08-21 22:42:04    阅读次数:538
Edit Distance
leetcode的题目Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2. (each operation is counted as 1 step.)You h...
分类:其他好文   时间:2014-08-21 22:29:54    阅读次数:279
poj3422--Kaka's Matrix Travels(拆点,最大费用)
Kaka's Matrix Travels Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7802   Accepted: 3138 Description On an N × N chessboard with a non-negative number in ...
分类:其他好文   时间:2014-08-21 21:15:18    阅读次数:300
解决openstack volume api版本问题
[root@os-node1~]#cinderlistERROR:VolumeAPIversionissetto1butyouareaccessinga2endpoint.Changeitsvalueviaeither--os-volume-api-versionorenv[OS_VOLUME_API_VERSION]在环境变量里把volume的API设置成2[root@os-node1~]#exportOS_VOLUME_API_VERSION=2再次执行查看列表[ro..
分类:Windows程序   时间:2014-08-21 19:34:25    阅读次数:511
【Leetcode长征系列】Letter Combinations of a Phone Number
原题: Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input...
分类:其他好文   时间:2014-08-21 19:30:24    阅读次数:225
Drawable与Bitmap(转)
Drawable以下这个是测试加载1000个Drawable对象的代码:public class Main extends Activity{ int number = 1000; Drawable[] array; @Override public void onCrea...
分类:其他好文   时间:2014-08-21 19:14:14    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!