Question: what is the difference of list and vector?
Answer: Difference between Vector and List in C++ ... List stores elements at non contiguous memory location i.e. it internally uses a doubly linked list i.e. Whereas, vector stores elements at contiguous memory locations like an array i.e.