···
class Solution {
public:
int getMissingNumber(vector[HTML_REMOVED]& nums) {
unordered_set[HTML_REMOVED] S;
for(int i=0;i<=nums.size();i++) S.insert(i);
for(auto x:nums) S.erase(x);
return *S.begin(); //删除完成之后只剩余一个元素
}
};
···