1vector<vector<int>> vec(N, vector<int> (M, INT_MAX));
2
3Explanation::
4vector<vector<int>> -- will take the formed container
5N -- Think like row of 2d Matrix
6vector<int> (M, INT_MAX) -- In each row, there is again a vector associated with it,
7that will formed 2d array.
1myVector[
2 Vector[0, 4, 2, 5],
3 Vector[1, 4, 2]
4];
5
6/*When you call for myVector[1].size() it would return 3 and [0] would return 4.
7
8For the amount of rows (int vectors) in the 2d vector, you can just use myVector.size()
9
10You can run this to see it in actions*/