原题:
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it withou...
分类:
其他好文 时间:
2014-08-15 14:46:48
阅读次数:
207
SVN上down下来的项目,本地运行却无法显示页面,经过尝试给模板文件改名就能回避这个问题。
定位到是模板缓存的问题,于是清模板缓存。
但是发现ThinkPHP项目Runtime目录下的缓存文件在删除时候会提示:
Resource is out of sync with the file system
原因是由于在不同的文件系统之间修改造成文件系统不同步。
解决方法是在Zend左...
分类:
其他好文 时间:
2014-08-15 12:50:38
阅读次数:
199
1: 类Class:typedef structobjc_class * Class;从Class的定义可以看出,它是一个 objc_class 结构类型的指针,objc_class又是什么呢?struct objc_class{ struct objc_class* isa; stru...
分类:
其他好文 时间:
2014-08-15 12:01:38
阅读次数:
208
消息转发 delegate和protocol 类别 消息转发当向someObject发送某消息,但runtime system在当前类和父类中都找不到对应方法的实现时,runtime system并不会立即报错使程序崩溃,而是依次执行下列步骤:分别简述一下流程: 1.动态方法解析:向当前类发送 re...
分类:
移动开发 时间:
2014-08-14 20:12:09
阅读次数:
184
using System;using System.Collections.Generic;using System.Text;using AForge.Neuro;using AForge.Neuro.Learning;using System.IO;using System.Runtime.Se...
分类:
Web程序 时间:
2014-08-14 19:26:49
阅读次数:
307
1. Windows平台上利用bsdiff.exe工具生成patch包。使用这个包里的bsdiff.exe,通过Java的Runtime来调用。假设我们所有的文件,包括bsdiff.exe和其他apk都在d盘根目录,那么代码实现可以如下: 1 package com.vic.demo; 2 3 i....
分类:
移动开发 时间:
2014-08-14 10:25:18
阅读次数:
215
For every type of object, the Java virtual machine instantiates an immutable instance ofjava.lang.Classwhich provides methods to examine the runtime p...
分类:
编程语言 时间:
2014-08-14 01:12:47
阅读次数:
206
1. 括号做题时偶然发现的!(详见 else if( arefriends(x,y)==-1 )4. 死循环刚刚又发现一个,真“倒霉”,都让我碰见了(详见 POJ 2236 Wireless Network)if(x!=y)//--------此处这个判断千万不能少,否则出现死循环,提交会出现ru....
分类:
其他好文 时间:
2014-08-13 21:58:47
阅读次数:
213
using System.Runtime.InteropServices;using System.Drawing; 1 public class BitMapCaptureScreen 2 { 3 [DllImport("GDI32.dll")] 4 ...
分类:
其他好文 时间:
2014-08-13 18:36:27
阅读次数:
196
最近刚开发了个activeX控件,下面是我的一些简单总结。1. 先创建一个类库项目,在AssemblyInfo.cs设置 [assembly: ComVisible(true)],意思是使此程序集中的类型对COM组件可见。使用命名空间using System.Runtime.InteropServi...
分类:
Web程序 时间:
2014-08-13 18:05:16
阅读次数:
246