Difference between vector V[] and vector< vector > V
vector<int> V[]is an array of vectors.vector< vector<int> > Vis a vector of vectors.- vector V[] is just a fixed array; and so you can add/modify only till the upper limit. It is not a vector per se, and so has a fixed size limit. However vector< vector > V is a dynamic vector and its size can be increased dynamically.
