Thursday, August 19, 2010

Can you give me one similarity and one difference of a Linked-list structure from a Vector?

about linked-list and vector.

Can you give me one similarity and one difference of a Linked-list structure from a Vector?
similarity: both can store an arbitrarily long list of items





difference: vector lookup is constant time, linked list lookup time is linear.

fake teeth

No comments:

Post a Comment