vector | Sololearn: Learn to code for FREE!

+1

vector

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

6/18/2017 2:33:21 PM

Navid Tak

3 Answers

New Answer

+7

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

0

In C++ a vector contains an array

0

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