Posted on October 14, 2020October 14, 2020 Description Submission class Solution { public: int findRepeatNumber(vector<int>& nums) { set<int> Set; for(int num: nums) { if(Set.find(num) != Set.end()) return num; Set.insert(num); } return nums[0]; } }; By Bill0412 Uncategorized 剑指Offer