2D matrix using vector:-
- vector <vector<int> > arr;
- arr.resize(row,vector<int>(col));
// Use of "sort()" for sorting first row
sort(arr[0].begin(), arr[0].end());
No comments:
Post a Comment