Skip to content

Commit 0571881

Browse files
authored
Use ranges::sort in C++ example
1 parent d4a8cf0 commit 0571881

File tree

1 file changed

+1
-1
lines changed
  • solution/0300-0399/0368.Largest Divisible Subset

1 file changed

+1
-1
lines changed

solution/0300-0399/0368.Largest Divisible Subset/README_EN.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Solution {
129129
class Solution {
130130
public:
131131
vector<int> largestDivisibleSubset(vector<int>& nums) {
132-
sort(nums.begin(), nums.end());
132+
ranges::sort(nums);
133133
int n = nums.size();
134134
int f[n];
135135
int k = 0;

0 commit comments

Comments
 (0)