class Solution { public: vector<int> getLeastNumbers_Solution(vector<int> input, int k) { sort(input.begin(),input.end()); vector<int>res(input.begin(),input.begin()+k); return res; } };