Skip to content

离散化 ​

cpp
sort(nums.begin(),nums.end());
nums.erase(unique(nums.begin(),nums.end()),nums.end());