+ 1

vector

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

18th Jun 2017, 2:33 PM
Navid Tak
Navid Tak - avatar
3 Respuestas
+ 7
in Java vectors are a part of lists (collections) collections contains * lists * map * set vectors comes under list
18th Jun 2017, 2:47 PM
Prudhvi Raaj
Prudhvi Raaj - avatar
0
In C++ a vector contains an array
18th Jun 2017, 5:02 PM
aklex
aklex - avatar
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
19th Jun 2017, 5:44 AM
Ivan Louch
Ivan Louch - avatar