Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For example:Given nums = [1,...
分类:
其他好文 时间:
2015-11-08 15:20:22
阅读次数:
248
(1)10个不同的球,放入3个不同的桶内,共有多少种方法? 答案:每个球有3种放法,ans=310。(2)Given a string with n characters, suppose all the characters are different from each other, how ....
分类:
其他好文 时间:
2015-11-07 21:48:46
阅读次数:
377
#pragma?mark?-?calculate?distance??根据2个经纬度计算距离??
??
#define?PI?3.1415926??
+(double)?LantitudeLongitudeDist:(double)lon1?other_Lat:(double)lat1?self_Lon:(double)lon2?sel...
分类:
移动开发 时间:
2015-11-07 16:16:43
阅读次数:
229
开发步骤: 1、New->Other->Service Application 2、现在一个服务程序的框架已经搭起来了 打开Service1窗口,有几个属性说明一下: AllowPause:是否允许暂停 AllowStop: 是否允许停止 Dependencies: 设置服务的依存关系,服务的启动是...
Xcode6.0以后不会自动创建全局引用文件pch,1>New file--->Other--->pch文件 2.>Build Phases--->Prefix Header把路径改为相对路径-->
分类:
其他好文 时间:
2015-11-05 22:11:30
阅读次数:
120
1、 滤镜效果(不透明度设置):div{filter:alpha(opacity=50);}/* for IE8 and earier */div{opacity:0.5}/* for IE9and other browsers */2、IE6,7支持inline元素转换成inline-block,...
分类:
其他好文 时间:
2015-11-05 15:08:49
阅读次数:
185
1. Hidden terminal: A, B and C, A and C cannot hear each other, if they both send packets to B, the collision will happen.2. Exposed terminal: A and B...
分类:
其他好文 时间:
2015-11-05 13:20:09
阅读次数:
150
1.创建Form1;2.创建FMXFrame(New -> Other->Delphi Files -> FMXFrame); // 单元名为UnitFrame,窗体名为frm 在窗体里放一个button,一个memo,这里只是测试有木有引用到。3.调用。uses UnitFrame;var ...
分类:
其他好文 时间:
2015-11-05 10:37:51
阅读次数:
222
Note:some of these are copied from other website,for learning purposeDynamic linking on Mac OS X, a tiny exampleSteps:1) create a library libmylib.dyl...
分类:
其他好文 时间:
2015-11-04 17:25:54
阅读次数:
162
Repair the WallTime Limit : 5000/1000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 2Accepted Submission(s) : 2Font:Time...
分类:
其他好文 时间:
2015-11-03 20:58:28
阅读次数:
167