Changes
1 changed files (+1/-1)
-
-
@@ -3,5 +3,5 @@ void compress(BidirectionalIterator first, BidirectionalIterator last) {vector<auto> tmp(first, last); sort(tmp.begin(), tmp.end()); tmp.resize(unique(tmp.begin(), tmp.end()) - tmp.begin()); for (auto it = first; it != last; it++)* it = lower_bound(tmp.begin(), tmp.end(), *it) - tmp.begin(); for (auto it = first; it != last; it++) *it = lower_bound(tmp.begin(), tmp.end(), *it) - tmp.begin(); }
-