Skip to content

Commit c54fbb0

Browse files
authored
Replace stable_sort with ranges::stable_sort
1 parent 9c5af30 commit c54fbb0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/strings/suffix_array/suffix_array_short.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ auto sa_short(const auto& s) {
2424
}
2525
return false;
2626
};
27-
stable_sort(all(sa), cmp);
27+
ranges::stable_sort(sa, cmp);
2828
sa_inv[sa[0]] = 0;
2929
rep(i, 1, n) sa_inv[sa[i]] =
3030
sa_inv[sa[i - 1]] + cmp(sa[i - 1], sa[i]);

0 commit comments

Comments
 (0)