寻找数组中的重复元素 本题较为简单,直接用哈希表储存某值是否存在,遍历数组,更新哈希表即可。 class Solution { public: int findRepeatNumber(vector<int>& nums) { unordered_map<int, bool> hashlist