Open devLupin opened 1 year ago
sort
default
vector<int> v; sort(v.begin(), v.end());
내장함수
sort(v.begin(), v.end(), greater<>());
sort(v.begin(), v.end(), less<>());
operator
bool compare(int i, int j) { return i > j; // 오름차순 }
sort
in algorithmdefault
내장함수
sort(v.begin(), v.end(), greater<>());
sort(v.begin(), v.end(), less<>());
operator