public class Solution { public int hammingDistance(int x, int y) { return Integer.bitCount(x ^ y); }} bitCount api : Returns the number of one-bits in ...
分类:
其他好文 时间:
2017-05-02 23:41:37
阅读次数:
164
最近把以前做的老游戏拿出来,重新编到手机上来玩玩,然后就有了以下的经历。 那时的引擎还是Cocos2dx-2.x,iPhone5还是高档机型。现在的机器是这样的,iPhone6S Plus我自用,今年iPhone7S都要出来了,真是时光荏苒,岁月如梭。 拿出我的CooolPad大神F2,OK。iPh ...
分类:
其他好文 时间:
2017-04-30 15:16:08
阅读次数:
413
jQuery.ajax() jQuery.ajax( url [, settings ] )Returns:jqXHR Description: Perform an asynchronous HTTP (Ajax) request. version added:1.5jQuery.ajax( ur ...
分类:
Web程序 时间:
2017-04-30 14:07:58
阅读次数:
255
一、 简单的对比 request.getParameter用的比较多,相对熟悉 request.getParameterValues(String name)是获得如checkbox类(名字相同,但值有多个)的数据。 接收数组变量 ,如checkobx类型 request.getParameter( ...
分类:
其他好文 时间:
2017-04-29 23:29:17
阅读次数:
198
/// <summary> /// 判断输入的字符串是否是一个合法的手机号 /// </summary> /// <param name="input"></param> /// <returns></returns> public static bool IsMobilePhone(string ...
分类:
移动开发 时间:
2017-04-28 14:03:31
阅读次数:
185
Task description Write a function: class Solution { public int solution(int A, int B, int K); } that, given three integers A, B and K, returns the num ...
分类:
其他好文 时间:
2017-04-28 10:25:19
阅读次数:
236
继承能够定义可重用、扩展或修改父类行为的子类。但基类的静态构造函数、实例构造函数和析构函数不能被派生类继承。 在下面实例中,定义一个基类Publication用于表示任何类型的出版物以及派生至Publication的其他类型Book类,由此也可以扩展为定义其他类型如:Magazine、Journal ...
分类:
其他好文 时间:
2017-04-27 23:09:59
阅读次数:
387
来源:http://m.blog.csdn.net/article/details?id=70766751 Some message encoding schemes require that an encoded message be sent in two parts. The ?rst par ...
分类:
其他好文 时间:
2017-04-27 22:06:01
阅读次数:
204
rrdtool: rrdtool可直接用pip install python-rrdtool import rrdtool 创建:create(...)create(args..): Set up a new Round Robin Database create filename [--start ...
分类:
其他好文 时间:
2017-04-27 13:25:18
阅读次数:
264