본문 바로가기
IT/알고리즘

40] Leetcode 912. Sort an Array

by 깻잎쌈 2020. 8. 7.
반응형

https://leetcode.com/problems/sort-an-array/

 

Sort an Array - LeetCode

Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.

leetcode.com

class Solution {
public:
    vector<int> sortArray(vector<int>& nums) {
        sort(nums.begin(), nums.end());
        
        return nums;
    }
};

;;;;

반응형

댓글