Update 剑指offer3数组中重复的数.md

This commit is contained in:
MoriSummer 2021-05-20 17:19:44 +08:00 committed by GitHub
parent 19b8ca6a04
commit d1dee7d48e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ C++ Code:
class Solution {
public:
int findRepeatNumber(vector<int>& 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){