2016年1月19日

Interface VS Abstract Class

摘要: An abstract class can have shared state or functionality. An interface is only a promise to provide the state or functionality. A good abstract class ... 阅读全文

posted @ 2016-01-19 23:34 touchdown 阅读(179) 评论(0) 推荐(0)

HashMap VS BST

摘要: HashMap usually performs search operations bounded with complexity of O(1)<=T(n)<=O(n). BST performs search operations in O(logN)<=T(n)<=O(N).HashMap ... 阅读全文

posted @ 2016-01-19 22:37 touchdown 阅读(192) 评论(0) 推荐(0)

vector VS list in C++

摘要: vector is like ArrayList in Java.vector:Continuous memory.Underlying array implementation.Pre-allocate space for future element. This means extra spac... 阅读全文

posted @ 2016-01-19 16:04 touchdown 阅读(169) 评论(0) 推荐(0)

Java ArrayList构造分析

摘要: 1 /** 2 * The array buffer into which the elements of the ArrayList are stored. 3 * The capacity of the ArrayList is the length of this... 阅读全文

posted @ 2016-01-19 15:05 touchdown 阅读(403) 评论(0) 推荐(0)

导航