Skip to content

Commit ce2b0f3

Browse files
authored
Create Sort colours
1 parent 33543a6 commit ce2b0f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Sort colours

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class Solution {
2+
public:
3+
void sortColors(vector<int>& nums) {
4+
sort(nums.begin(), nums.end());
5+
6+
}
7+
};

0 commit comments

Comments
 (0)