vector<int> salary = {100, 34, 90, 1, 14, 65, 22, 21, 90};
Q: Sort this array in NON-decreasing order.A: using the in-built sort function we can write
// we need to include bits/stdc++ library
sort(v.begin(), v.end()); // {1, 14, 21, 22, 34, 65, 90,...