Skip to content

Commit eacc29a

Browse files
authored
Use ranges::sort for sorting vector
1 parent 0571881 commit eacc29a

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/Solution.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Solution {
22
public:
33
vector<int> largestDivisibleSubset(vector<int>& nums) {
4-
sort(nums.begin(), nums.end());
4+
ranges::sort(nums);
55
int n = nums.size();
66
int f[n];
77
int k = 0;

0 commit comments

Comments
 (0)