摘要:
problem:There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity sh... 阅读全文
阅读排行榜
[原]Android打包之Ant打包
2014-07-24 19:21 by 雪夜&流星, 250 阅读, 收藏,
摘要:
Android自动打包流程详细图:使用Ant打包会简单很多,只要使用以下两个命令就可以搞定:android update project -p . --target android-18 ant clean & ant debug(ant release)如果要打release包需要在... 阅读全文
正则表达式基础知识
2011-09-04 13:45 by 雪夜&流星, 246 阅读, 收藏,
摘要:
来源:http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzhongjiaocheng.html常用的元字符\w 匹配字母或数字或下划线或汉字\s 匹配任意的空白符\d 匹配数字\b 匹配单词的开始或结束^ 匹配字符串的开始$ 匹配字符串的结束常用的限定符* 重复零次或更多次+ 重复一次或更多次? 重复零次或一次{n} 重复n次{n,} 重复n次或更多次{n,m} 重复n到m次\(?0\d{2}[) -]?\d{8} 匹配几种格式的电话号码,像(010)88886666,或022-22334455,或02912345 阅读全文
[转]简单优化:Zipalign
2014-09-02 11:07 by 雪夜&流星, 245 阅读, 收藏,
摘要:
转自:http://www.cnblogs.com/xirihanlin/archive/2010/04/12/1710164.htmlAndroid SDK中包含一个“zipalign”的工具,它能够对打包的应用程序进行优化。在你的应用程序上运行zipalign,使得在运行时Android与应用程... 阅读全文
设计模式——观察者模式(ObserverPattern)
2013-11-30 17:13 by 雪夜&流星, 243 阅读, 收藏,
摘要:
观察者模式(ObserverPattern):观察者模式又称发布-订阅(Publish/Subscribe)模式,定义了一个中一对多的依赖关系,让多个观察者对象同时监听某一个主题对象。这个主题对象在状态发生变化时,会通知所有观察者对象,使他们能够自动更新自己。UML图:Subject:package com.cnblog.clarck;import java.util.ArrayList;import java.util.List;/** * 主题/抽象通知者 * * @author clarck * */public class Subject { private List obs... 阅读全文
浙公网安备 33010602011771号