diff --git a/animation-simulation/数组篇/剑指offer3数组中重复的数.md b/animation-simulation/数组篇/剑指offer3数组中重复的数.md index e29cc93..f817fdd 100644 --- a/animation-simulation/数组篇/剑指offer3数组中重复的数.md +++ b/animation-simulation/数组篇/剑指offer3数组中重复的数.md @@ -88,7 +88,7 @@ C++ Code: class Solution { public: int findRepeatNumber(vector& nums) { - if(nums.empty()) return 0; + if(nums.empty()) return 0; int n = nums.size(); for(int i = 0; i < n; ++i){ while(nums[i] != i){