AC-Code class Solution { public: int smallestDistancePair(vector<int>& nums, int k) { sort(nums.begin(), nums.end