摘要: public class Singleton{private static volatile Singleton _instance; //volatile variable public static Singleton getInstance(){ if(_instance == null)... 阅读全文
posted @ 2015-09-28 16:09 mj-w 阅读(117) 评论(0) 推荐(0)
摘要: Hash tablesareO(1)average andamortizedcase complexity, however is suffers fromO(n)worst casetime complexity. [And I think this is where your confusion... 阅读全文
posted @ 2015-08-28 12:02 mj-w 阅读(229) 评论(0) 推荐(0)