Sunday, December 5, 2010

Vector Algorithms

vector() has the complexity of O(n); capacity() has the complexity of O(1); reserve() has the complexity of O(n); resize() has the complexity of O(n).

No comments:

Post a Comment