vector | Sololearn: Learn to code for FREE!



hi, guys Is vector an array or a link list?

6/18/2017 2:33:21 PM

Navid Tak

3 Answers

New Answer


in Java vectors are a part of lists (collections) collections contains * lists * map * set vectors comes under list


In C++ a vector contains an array


vector is a Stack ADT, implemented internally with an array. Vector has both push_back() method of a stack and the element index [ ] operator of an array