快排思想 class Solution { public: vector<int> GetLeastNumbers_Solution(vector<int> input, int k) { srand(time(NULL)); if (input.size() == 1 && k == 1) return input; vector<int> ans; partition(input, 0, input.size() - 1, k, ans); retur...